org.apache.fop.fonts
Class SingleByteFont
- FontDescriptor, FontMetrics, MutableFont
public class SingleByteFont
Generic SingleByte font
getAscender , getAscender , getCapHeight , getCapHeight , getDescender , getDescender , getEmbedFileName , getEmbedFileSource , getEmbedFontName , getEmbedResourceName , getFamilyNames , getFirstChar , getFlags , getFontBBox , getFontName , getFontSubName , getFontType , getFullName , getItalicAngle , getKerningInfo , getLastChar , getMissingWidth , getStemV , getStrippedFontName , getWeight , getXHeight , hasKerningInfo , isKerningEnabled , isSymbolicFont , putKerningEntry , replaceKerningMap , setAscender , setCapHeight , setDescender , setEmbedFileName , setEmbedResourceName , setFamilyNames , setFirstChar , setFlags , setFontBBox , setFontName , setFontSubFamilyName , setFontType , setFullName , setItalicAngle , setKerningEnabled , setLastChar , setMissingWidth , setResolver , setStemV , setWeight , setXHeight |
SingleByteFont
public SingleByteFont()
Main constructor.
getCodePointMapping
public CodePointMapping getCodePointMapping()
Returns the code point mapping (encoding) of this font.
setEncoding
public void setEncoding(String encoding)
Sets the encoding of the font.
encoding
- the encoding (ex. "WinAnsiEncoding" or "SymbolEncoding")
setEncoding
public void setEncoding(CodePointMapping encoding)
Sets the encoding of the font.
encoding
- the encoding information
setWidth
public void setWidth(int index,
int width)
Sets a width for a character.
index
- index of the characterwidth
- the width of the character
updateMapping
protected void updateMapping(String encoding)
Updates the mapping variable based on the encoding.
encoding
- the name of the encoding
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.