public class OutlineFont extends AbstractOutlineFont
charSet
eventListener, 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, mapChar
getEmbedFontName, getFamilyNames, getFontName, getFontType, getFontURI, getFullName, getKerningInfo, getStrikeoutPosition, getStrikeoutThickness, getWidths, hasKerningInfo, isEmbeddable, toString, toUnicodeCodepoint
getMaxAscent, hadMappingOperations, hasFeature, isCID, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyph
public 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)
AFPFont
getBoundingBox
in interface FontMetrics
getBoundingBox
in class AFPFont
character
- glyph indexsize
- font sizeCopyright © 2025 Apache Software Foundation. All rights reserved.