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/


Constructor Summary
TTFSubSetFile()
           
 
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
 

Constructor Detail

TTFSubSetFile

public TTFSubSetFile()
Method Detail

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-2002 Apache Software Foundation. All Rights Reserved.