public class DoubleByteFont extends AbstractOutlineFont
charSet
eventListener, NOT_FOUND
Constructor and Description |
---|
DoubleByteFont(java.lang.String name,
CharacterSet charSet)
Constructor for an double-byte outline font.
|
Modifier and Type | Method and Description |
---|---|
int |
getWidth(int character,
int size)
Obtain the width of the character for the specified point size.
|
getAscender, getCapHeight, getCharacterSet, getCharacterSet, getDescender, getEncodingName, getFirstChar, getLastChar, getWidths, getWidths, getXHeight, hasChar, mapChar
getEmbedFontName, getFamilyNames, getFontName, getFontType, getFullName, getKerningInfo, hasKerningInfo, isEmbeddable, setEmbeddable, toString, toUnicodeCodepoint
getMaxAscent, hadMappingOperations, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyph
public DoubleByteFont(java.lang.String name, CharacterSet charSet)
name
- the name of the fontcharSet
- the character setpublic int getWidth(int character, int size)
getWidth
in interface FontMetrics
getWidth
in class AbstractOutlineFont
character
- the charactersize
- the font size (in mpt)Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.