org.apache.fop.fonts
Class TTFSubSetFile
java.lang.Object
org.apache.fop.fonts.TTFFile
org.apache.fop.fonts.TTFSubSetFile
public class TTFSubSetFile
- extends TTFFile
Reads a TrueType file and generates a subset
That can be used to embed a TrueType CID font
TrueType tables needed for embedded CID fonts are:
"head", "hhea", "loca", "maxp", "cvt ", "prep", "glyf", "hmtx" and "fpgm"
The TrueType spec can be found at the Microsoft
Typography site: http://www.microsoft.com/truetype/
Methods inherited from class org.apache.fop.fonts.TTFFile |
checkTTC, getAnsiKerning, getCapHeight, getCharSetName, getCharWidth, getCMaps, getFamilyName, getFirstChar, getFlags, getFontBBox, getItalicAngle, getKerning, getLastChar, getLowerCaseAscent, getLowerCaseDescent, getNumGlyphs, getPostscriptName, getStemV, getWidths, getWindowsName, getXHeight, isEmbeddable, main, printStuff, readDirTabs, readFont, readFont, readFontHeader, readHorizontalHeader, readHorizontalMetrics, readIndexToLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TTFSubSetFile
public TTFSubSetFile()
readFont
public byte[] readFont(FontFileReader in,
String name,
Map glyphs)
throws IOException
- glyphs has old index as (Integer) key and new index
as (Integer) value
- Throws:
IOException
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.