public abstract class AbstractOutlineFont extends AFPFont
| Modifier and Type | Field and Description |
|---|---|
protected CharacterSet |
charSet
The character set for this font
|
eventListener, NOT_FOUND| Constructor and Description |
|---|
AbstractOutlineFont(String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer)
Constructor for an outline font.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAscender(int size)
The ascender is the part of a lowercase letter that extends above the
"x-height" (the height of the letter "x"), such as "d", "t", or "h".
|
int |
getCapHeight(int size)
Obtains the height of capital letters for the specified point size.
|
CharacterSet |
getCharacterSet()
Get the character set metrics.
|
CharacterSet |
getCharacterSet(int size)
Get the character set metrics.
|
int |
getDescender(int size)
The descender is the part of a lowercase letter that extends below the
base line, such as "g", "j", or "p".
|
String |
getEncodingName()
Get the encoding of the font.
|
int |
getUnderlinePosition(int size)
Returns the distance from the baseline to the center of the underline (negative
value indicates below baseline).
|
int |
getUnderlineThickness(int size)
Returns the thickness of the underline.
|
int |
getXHeight(int size)
The "x-height" (the height of the letter "x").
|
boolean |
hasChar(char c)
Determines whether this font contains a particular character/glyph.
|
char |
mapChar(char c)
Map a Unicode character to a code point in the font.
|
getBoundingBox, getEmbedFontName, getFamilyNames, getFontName, getFontType, getFontURI, getFullName, getKerningInfo, getStrikeoutPosition, getStrikeoutThickness, getWidths, hasKerningInfo, isEmbeddable, toString, toUnicodeCodepointgetMaxAscent, hadMappingOperations, hasFeature, isCID, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyphclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidthprotected CharacterSet charSet
public AbstractOutlineFont(String name, boolean embeddable, CharacterSet charSet, AFPEventProducer eventProducer)
name - the name of the fontembeddable - sets whether or not this font is to be embeddedcharSet - the chracter seteventProducer - The object to handle any events which occur from the object.public CharacterSet getCharacterSet()
public CharacterSet getCharacterSet(int size)
getCharacterSet in class AFPFontsize - ignoredpublic int getAscender(int size)
size - the font size (in mpt)public int getUnderlinePosition(int size)
size - font sizepublic int getUnderlineThickness(int size)
AFPFontgetUnderlineThickness in interface FontMetricsgetUnderlineThickness in class AFPFontsize - font sizepublic int getCapHeight(int size)
size - the font size (in mpt)public int getDescender(int size)
size - the font size (in mpt)public int getXHeight(int size)
size - the font size (in mpt)public boolean hasChar(char c)
public char mapChar(char c)
public String getEncodingName()
getEncodingName in class TypefaceCopyright © 2023 Apache Software Foundation. All rights reserved.