org.apache.fop.fonts
Class SingleByteFont
- FontDescriptor, FontMetrics, MutableFont
public class SingleByteFont
Generic SingleByte font
getAscender , getAscender , getCapHeight , getCapHeight , getDescender , getDescender , getEmbedFileName , getEmbedFileSource , getEmbedResourceName , getFirstChar , getFlags , getFontBBox , getFontName , getFontSubName , getFontType , getItalicAngle , getKerningInfo , getLastChar , getMissingWidth , getStemV , getStrippedFontName , getXHeight , hasKerningInfo , isKerningEnabled , putKerningEntry , setAscender , setCapHeight , setDescender , setEmbedFileName , setEmbedResourceName , setFirstChar , setFlags , setFontBBox , setFontName , setFontSubFamilyName , setFontType , setItalicAngle , setKerningEnabled , setLastChar , setMissingWidth , setResolver , setStemV , setXHeight |
SingleByteFont
public SingleByteFont()
Main constructor.
getCharsUsed
public char[] getCharsUsed()
setEncoding
public void setEncoding(String encoding)
Sets the encoding of the font.
encoding
- the encoding (ex. "WinAnsiEncoding" or "SymbolEncoding")
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()
Updates the mapping variable based on the encoding.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.