public class DoubleByteFont extends AbstractOutlineFont
AbstractOutlineFont that supports double-byte fonts (CID Keyed font (Type 0)).
The width of characters that are not prescribed a width metrics in the font resource use
a fallback width. The default width is 1 em. A character can be supplied and queried for the
fallback width of all non-ideograph characters.charSeteventListener, NOT_FOUND| Constructor and Description |
|---|
DoubleByteFont(java.lang.String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer)
Constructor for an double-byte outline font.
|
| Modifier and Type | Method and 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)
Return the width (in 1/1000ths of point size) of the character at
code point i.
|
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 DoubleByteFont(java.lang.String name,
boolean embeddable,
CharacterSet charSet,
AFPEventProducer eventProducer)
name - the name of the fontembeddable - whether or not this font is embeddablecharSet - the character seteventProducer - Handles any AFP related eventspublic int getWidth(int character,
int size)
character - code point indexsize - font sizepublic java.awt.Rectangle getBoundingBox(int character,
int size)
AFPFontgetBoundingBox in interface FontMetricsgetBoundingBox in class AFPFontcharacter - glyph indexsize - font sizeCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.