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/
Method Summary |
byte[] |
readFont(FontFileReader in,
java.lang.String name,
java.util.Hashtable glyphs)
glyphs has old index as (Integer) key and new index
as (Integer) value |
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,
java.lang.String name,
java.util.Hashtable glyphs)
throws java.io.IOException
- glyphs has old index as (Integer) key and new index
as (Integer) value
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.