public class TTFSubSetFile extends TTFFile
TTFFile.PostScriptVersion
Constructor and Description |
---|
TTFSubSetFile()
Default Constructor
|
TTFSubSetFile(boolean useKerning,
boolean useAdvanced)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getFontSubset()
Returns a subset of the fonts (readFont() MUST be called first in order to create the
subset).
|
void |
readFont(FontFileReader in,
java.lang.String name,
java.util.Map<java.lang.Integer,java.lang.Integer> glyphs)
Reads a font and creates a subset of the font.
|
void |
stream(TTFOutputStream ttfOut)
Streams a font.
|
checkTTC, convertTTFUnit2PDFUnit, getAnsiKerning, getCapHeight, getCharSetName, getCharWidth, getCMaps, getDirectoryEntry, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFullName, getGDEF, getGPOS, getGSUB, getItalicAngle, getKerning, getLastChar, getLowerCaseAscent, getLowerCaseDescent, getNumGlyphs, getPadSize, getPostScriptName, getStemV, getSubFamilyName, getTTCnames, getWeightClass, getWidths, getXHeight, hasAdvancedTable, isCFF, isEmbeddable, main, printStuff, readDirTabs, readFont, readFont, readFontHeader, readHorizontalHeader, readHorizontalMetrics, readIndexToLocation, seekTab
public TTFSubSetFile()
public TTFSubSetFile(boolean useKerning, boolean useAdvanced)
useKerning
- true if kerning data should be loadeduseAdvanced
- true if advanced typographic tables should be loadedpublic void readFont(FontFileReader in, java.lang.String name, java.util.Map<java.lang.Integer,java.lang.Integer> glyphs) throws java.io.IOException
public byte[] getFontSubset()
public void stream(TTFOutputStream ttfOut) throws java.io.IOException
TTFFile
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.