public class RMFontFile extends RMObject
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
awt()
Returns the AWT font represented by the font file.
|
boolean |
canDisplay(char aChar)
Returns if this font can display the given char.
|
float |
charAdvance(char aChar)
Returns the char advance for the given char.
|
float |
charKern(char aChar1,
char aChar2)
Returns the kerning for the given pair of characters (no way to do this in Java!).
|
RMPath |
charPath(char aChar)
Returns the path for a given character.
|
RMFontFile |
getBold()
Returns the bold version of this font.
|
java.lang.String |
getFamily()
Returns the family name of this font.
|
java.lang.String |
getFamilyEnglish()
Returns the family name of this font in English.
|
static RMFontFile |
getFontFile(java.lang.String aName)
Returns a font file for a given font name.
|
java.lang.String |
getFontName()
Returns the name of this font.
|
java.lang.String |
getFontNameEnglish()
Returns the name of this font in English.
|
float |
getHeight()
Returns the height of this font file.
|
RMFontFile |
getItalic()
Returns the italic version of this font.
|
float |
getLeading()
Returns the default distance between lines for this font.
|
float |
getLineHeight()
Returns the height of a line of text in this font.
|
float |
getMaxAdvance()
Returns the max advance of characters in this font.
|
float |
getMaxAscent()
Returns the max distance above the baseline that this font goes.
|
float |
getMaxDescent()
Returns the max distance below the baseline that this font goes.
|
java.lang.String |
getPSName()
Returns the PostScript name of this font.
|
float |
getStrikethroughOffset()
Returns the distance above the baseline that a strikethrough should be drawn.
|
float |
getUnderlineOffset()
Returns the distance below the baseline that an underline should be drawn.
|
float |
getUnderlineThickness()
Returns the default thickness that an underline should be drawn.
|
boolean |
isBold()
Returns whether this font is considered bold.
|
boolean |
isItalic()
Returns whether this font is considered italic.
|
int |
style()
Returns the awt style of this font.
|
java.lang.String |
toString()
Returns the font name of this font file.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public static RMFontFile getFontFile(java.lang.String aName)
public java.awt.Font awt()
public java.lang.String getFontName()
public java.lang.String getFontNameEnglish()
public java.lang.String getFamily()
public java.lang.String getFamilyEnglish()
public java.lang.String getPSName()
public float charAdvance(char aChar)
public float charKern(char aChar1, char aChar2)
public RMPath charPath(char aChar)
public float getMaxAscent()
public float getMaxDescent()
public float getLeading()
public float getHeight()
public float getLineHeight()
public float getMaxAdvance()
public float getUnderlineOffset()
public float getUnderlineThickness()
public float getStrikethroughOffset()
public boolean isBold()
public boolean isItalic()
public int style()
public boolean canDisplay(char aChar)
public RMFontFile getBold()
public RMFontFile getItalic()
public java.lang.String toString()
toString
in class java.lang.Object