|
fop 0.95 | |||||||||
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
public class SingleByteFont
Generic SingleByte font
Constructor Summary | |
---|---|
SingleByteFont()
Main constructor. |
Method Summary | |
---|---|
CodePointMapping |
getCodePointMapping()
Returns the code point mapping (encoding) of this font. |
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(CodePointMapping encoding)
Sets the encoding of 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(java.lang.String encoding)
Updates the mapping variable based on the encoding. |
Methods inherited from class org.apache.fop.fonts.Typeface |
---|
getMaxAscent, hadMappingOperations, isMultiByte, notifyMapOperation |
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 |
---|
public boolean isEmbeddable()
public java.lang.String getEncoding()
getEncoding
in class Typeface
public CodePointMapping getCodePointMapping()
public int getWidth(int i, int size)
i
- code point indexsize
- font size
public int[] getWidths()
This is used to get an array for inserting in an output format. It should not be used for lookup.
public char mapChar(char c)
mapChar
in class Typeface
c
- character to map
public boolean hasChar(char c)
hasChar
in class Typeface
c
- character to check
protected void updateMapping(java.lang.String encoding)
encoding
- the name of the encodingpublic void setEncoding(java.lang.String encoding)
encoding
- the encoding (ex. "WinAnsiEncoding" or "SymbolEncoding")public void setEncoding(CodePointMapping encoding)
encoding
- the encoding informationpublic void setWidth(int index, int width)
index
- index of the characterwidth
- the width of the character
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |