Package org.jmol.util

Class Font

java.lang.Object
org.jmol.util.Font

public final class Font extends Object

Provides font support using a int fid (Font ID) as an index into font table.

Supports standard font faces, font styles, and font sizes.

Author:
Miguel, miguel@jmol.org
  • Field Details

    • fid

      public final int fid
    • fontFace

      public final String fontFace
    • fontStyle

      public final String fontStyle
    • fontSizeNominal

      public final float fontSizeNominal
    • idFontFace

      public final int idFontFace
    • idFontStyle

      public final int idFontStyle
    • fontSize

      public final float fontSize
    • font

      public final Object font
    • fontSizeAngstroms

      public float fontSizeAngstroms
    • FONT_FACE_SANS

      public static final int FONT_FACE_SANS
      See Also:
    • FONT_FACE_SERIF

      public static final int FONT_FACE_SERIF
      See Also:
    • FONT_FACE_MONO

      public static final int FONT_FACE_MONO
      See Also:
    • FONT_STYLE_PLAIN

      public static final int FONT_STYLE_PLAIN
      See Also:
    • FONT_STYLE_BOLD

      public static final int FONT_STYLE_BOLD
      See Also:
    • FONT_STYLE_ITALIC

      public static final int FONT_STYLE_ITALIC
      See Also:
    • FONT_STYLE_BOLDITALIC

      public static final int FONT_STYLE_BOLDITALIC
      See Also:
  • Method Details

    • getFont3D

      public static Font getFont3D(int fontID)
    • createFont3D

      public static Font createFont3D(int fontface, int fontstyle, float fontsize, float fontsizeNominal, float fontSizeAngstroms, FontManager manager, Object graphicsForMetrics)
    • getFontFaceID

      public static int getFontFaceID(String fontface)
    • getFontStyleID

      public static int getFontStyleID(String fontstyle)
    • getAscent

      public int getAscent()
    • getDescent

      public int getDescent()
    • getHeight

      public int getHeight()
    • getFontMetrics

      public Object getFontMetrics()
    • stringWidth

      public int stringWidth(String text)
    • getInfo

      public String getInfo()
    • toString

      public String toString()
      Overrides:
      toString in class Object