|
fop 0.93 | ||||||||||
| 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.fonts.CustomFont
org.apache.fop.fonts.SingleByteFont
Generic SingleByte font
| Field Summary |
| Fields inherited from class org.apache.fop.fonts.CustomFont |
embedResourceName |
| Constructor Summary | |
SingleByteFont()
Main constructor. |
|
| Method Summary | |
char[] |
getCharsUsed()
|
java.lang.String |
getEncoding()
Get the encoding of the font. |
int |
getWidth(int i,
int size)
Return the width (in 1/1000ths of point size) of the character at code point i. |
int[] |
getWidths()
Return the array of widths. |
boolean |
hasChar(char c)
Determines whether this font contains a particular character/glyph. |
boolean |
isEmbeddable()
Indicates if this font may be embedded. |
char |
mapChar(char c)
Map a Unicode character to a code point in the font. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding of the font. |
void |
setWidth(int index,
int width)
Sets a width for a character. |
protected void |
updateMapping()
Updates the mapping variable based on the encoding. |
| Methods inherited from class org.apache.fop.fonts.CustomFont |
getAscender, getAscender, getCapHeight, getCapHeight, getDescender, getDescender, getEmbedFileName, getEmbedFileSource, getEmbedResourceName, getFirstChar, getFlags, getFontBBox, getFontName, getFontType, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getStemV, getXHeight, hasKerningInfo, isKerningEnabled, putKerningEntry, setAscender, setCapHeight, setDescender, setEmbedFileName, setEmbedResourceName, setFirstChar, setFlags, setFontBBox, setFontName, setFontType, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setResolver, setStemV, setXHeight |
| Methods inherited from class org.apache.fop.fonts.Typeface |
getMaxAscent, isMultiByte |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fop.fonts.FontMetrics |
getMaxAscent |
| Constructor Detail |
public SingleByteFont()
| Method Detail |
protected void updateMapping()
public boolean isEmbeddable()
FontDescriptor
FontDescriptor.isEmbeddable()public java.lang.String getEncoding()
Typeface
getEncoding in class TypefaceTypeface.getEncoding()public void setEncoding(java.lang.String encoding)
encoding - the encoding (ex. "WinAnsiEncoding" or "SymbolEncoding")
public int getWidth(int i,
int size)
FontMetrics
i - code point indexsize - font size
FontMetrics.getWidth(int, int)public int[] getWidths()
FontMetricsThis is used to get an array for inserting in an output format. It should not be used for lookup.
FontMetrics.getWidths()public char mapChar(char c)
Typeface
mapChar in class Typefacec - character to map
Typeface.mapChar(char)public boolean hasChar(char c)
Typeface
hasChar in class Typefacec - character to check
Typeface.hasChar(char)
public void setWidth(int index,
int width)
index - index of the characterwidth - the width of the characterpublic char[] getCharsUsed()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||