FontMetrics
AFPFontConfig.AFPTrueTypeFont
public class OutlineFont extends AbstractOutlineFont
charSet
eventListener, NOT_FOUND
Constructor | Description |
---|---|
OutlineFont(java.lang.String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer) |
Construct outline font with specified name and character set.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMaxAscent, hadMappingOperations, hasFeature, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyph
public OutlineFont(java.lang.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 java.awt.Rectangle getBoundingBox(int character, int size)
AFPFont
getBoundingBox
in interface FontMetrics
getBoundingBox
in class AFPFont
character
- glyph indexsize
- font sizeCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.