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:
  • Method Details

    • getClassStackIndex

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

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

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

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