|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fonts.Typeface
org.apache.fop.afp.fonts.AFPFont
org.apache.fop.afp.fonts.AbstractOutlineFont
org.apache.fop.afp.fonts.DoubleByteFont
public class DoubleByteFont
Implementation of 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.
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.afp.fonts.AbstractOutlineFont |
|---|
charSet |
| Fields inherited from class org.apache.fop.afp.fonts.AFPFont |
|---|
name |
| Fields inherited from class org.apache.fop.fonts.Typeface |
|---|
eventListener, NOT_FOUND |
| Constructor Summary | |
|---|---|
DoubleByteFont(java.lang.String name,
CharacterSet charSet)
Constructor for an double-byte outline font. |
|
| Method Summary | |
|---|---|
int |
getWidth(int character,
int size)
Obtain the width of the character for the specified point size. |
| Methods inherited from class org.apache.fop.afp.fonts.AbstractOutlineFont |
|---|
getAscender, getCapHeight, getCharacterSet, getCharacterSet, getDescender, getEncodingName, getFirstChar, getLastChar, getWidths, getWidths, getXHeight, hasChar, mapChar |
| Methods inherited from class org.apache.fop.afp.fonts.AFPFont |
|---|
getEmbedFontName, getFamilyNames, getFontName, getFontType, getFullName, getKerningInfo, hasKerningInfo, isEmbeddable, setEmbeddable, toString, toUnicodeCodepoint |
| Methods inherited from class org.apache.fop.fonts.Typeface |
|---|
getMaxAscent, hadMappingOperations, isMultiByte, notifyMapOperation, setEventListener, warnMissingGlyph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleByteFont(java.lang.String name,
CharacterSet charSet)
name - the name of the fontcharSet - the character set| Method Detail |
|---|
public int getWidth(int character,
int size)
getWidth in interface FontMetricsgetWidth in class AbstractOutlineFontcharacter - the charactersize - the font size (in mpt)
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||