public class OutlineFont extends AbstractOutlineFont
charSeteventListener, NOT_FOUND| Constructor and Description |
|---|
OutlineFont(String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer)
Construct outline font with specified name and character set.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBoundingBox(int character,
int size)
Returns the bounding box of the glyph at the given index, for the given font size.
|
int |
getWidth(int character,
int size)
Obtain the width of the character for the specified point size.
|
getAscender, getCapHeight, getCharacterSet, getCharacterSet, getDescender, getEncodingName, getUnderlinePosition, getUnderlineThickness, getXHeight, hasChar, mapChargetEmbedFontName, getFamilyNames, getFontName, getFontType, getFontURI, getFullName, getKerningInfo, getStrikeoutPosition, getStrikeoutThickness, getWidths, hasKerningInfo, isEmbeddable, toString, toUnicodeCodepointgetMaxAscent, hadMappingOperations, hasFeature, isCID, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyphpublic OutlineFont(String name, boolean embeddable, CharacterSet charSet, AFPEventProducer eventProducer)
name - font's nameembeddable - whether or not this font is embeddablecharSet - font's character seteventProducer - Handles any AFP related eventspublic int getWidth(int character,
int size)
character - the charactersize - the font size (in mpt)public Rectangle getBoundingBox(int character, int size)
AFPFontgetBoundingBox in interface FontMetricsgetBoundingBox in class AFPFontcharacter - glyph indexsize - font sizeCopyright © 2025 Apache Software Foundation. All rights reserved.