public abstract class AFPFont extends Typeface
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The font name
|
eventListener, NOT_FOUND
Constructor and Description |
---|
AFPFont(java.lang.String name)
Constructor for the base font requires the name.
|
Modifier and Type | Method and Description |
---|---|
abstract CharacterSet |
getCharacterSet(int size)
Returns the character set for a given size
|
java.lang.String |
getEmbedFontName()
Returns the font name for font embedding (may include a prefix, Example: "1E28bcArialMT").
|
java.util.Set |
getFamilyNames()
Returns the font's family names as a Set of Strings (Example: "Helvetica").
|
java.lang.String |
getFontName()
Returns the "PostScript" font name (Example: "Helvetica-BoldOblique").
|
FontType |
getFontType()
Returns the type of the font.
|
java.lang.String |
getFullName()
Returns the font's full name (Example: "Helvetica Bold Oblique").
|
java.util.Map |
getKerningInfo()
Returns the kerning map for the font.
|
boolean |
hasKerningInfo()
Indicates if the font has kerning information.
|
boolean |
isEmbeddable()
Indicates if this font may be embedded.
|
void |
setEmbeddable(boolean value)
Controls whether this font is embeddable or not.
|
java.lang.String |
toString() |
protected static char |
toUnicodeCodepoint(int character)
Maps mapped code points to Unicode code points.
|
getEncodingName, getMaxAscent, hadMappingOperations, hasChar, isMultiByte, mapChar, notifyMapOperation, setEventListener, warnMissingGlyph
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAscender, getCapHeight, getDescender, getWidth, getWidths, getXHeight
public AFPFont(java.lang.String name)
name
- the name of the fontpublic java.lang.String getFontName()
public java.lang.String getEmbedFontName()
public java.lang.String getFullName()
public java.util.Set getFamilyNames()
public FontType getFontType()
public boolean hasKerningInfo()
public java.util.Map getKerningInfo()
public abstract CharacterSet getCharacterSet(int size)
size
- the font sizepublic void setEmbeddable(boolean value)
value
- true to enable embedding, false otherwise.public boolean isEmbeddable()
protected static final char toUnicodeCodepoint(int character)
character
- the mapped code pointCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.