Package org.jmol.util
Class Font
java.lang.Object
org.jmol.util.Font
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FontcreateFont3D(int fontface, int fontstyle, float fontsize, float fontsizeNominal, FontManager manager, Object graphicsForMetrics) intintstatic FontgetFont3D(int fontID) static intgetFontFaceID(String fontface) static intgetFontStyleID(String fontstyle) intgetInfo()intstringWidth(String text) toString()
-
Field Details
-
fid
public final int fid -
fontFace
-
fontStyle
-
fontSizeNominal
public final float fontSizeNominal -
idFontFace
public final int idFontFace -
idFontStyle
public final int idFontStyle -
fontSize
public final float fontSize -
font
-
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
-
createFont3D
public static Font createFont3D(int fontface, int fontstyle, float fontsize, float fontsizeNominal, FontManager manager, Object graphicsForMetrics) -
getFontFaceID
-
getFontStyleID
-
getAscent
public int getAscent() -
getDescent
public int getDescent() -
getHeight
public int getHeight() -
getFontMetrics
-
stringWidth
-
getInfo
-
toString
-