Class SoFontNameElement

  • public class SoFontNameElement
    extends SoReplacedElement
    Stores the current font name. Default font name is setup at startup by OIV_FONT_NAME environement variable if defined.

    This element stores the current font name.

    See Also:
    SoFont, SoFontStyle
    • Method Detail

      • getClassStackIndex

        public static int getClassStackIndex()
        As of Open Inventor replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • getDefault

        public static java.lang.String getDefault()
        Returns the default font name.
      • get

        public static java.lang.String get​(SoState state)
        Returns the current font name from the state.
      • set

        public static void set​(SoState state,
                               SoNode node,
                               java.lang.String fontName)
        Sets the current font name.