Package de.intarsys.cwt.font.truetype
Class CreateSubset
java.lang.Object
de.intarsys.cwt.font.truetype.CreateSubset
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set
addCompositeGlyphs
(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, Set glyphs) Add all dependent glyphs not yet included for any composite glyphs in the set of glyphs.protected void
addCompositeGlyphs
(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, Set glyphs, int codePoint) Add dependent glyphs not yet included for composite glyphs.compute()
protected TTFont
protected void
createGlyphTable
(TTTable loca, TTTable glyf, de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] oldLocations, Set glyphs, boolean shortFormat) getFont()
-
Field Details
-
SubsetTables
public static byte[][] SubsetTables
-
-
Constructor Details
-
CreateSubset
-
-
Method Details
-
addCompositeGlyphs
protected Set addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, Set glyphs) throws IOException, TrueTypeException Add all dependent glyphs not yet included for any composite glyphs in the set of glyphs.- Parameters:
glyfRandom
-locations
-glyphs
-- Returns:
- Throws:
IOException
TrueTypeException
-
addCompositeGlyphs
protected void addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, Set glyphs, int codePoint) throws IOException, TrueTypeException Add dependent glyphs not yet included for composite glyphs.- Parameters:
glyfRandom
-locations
-glyphs
-codePoint
-- Throws:
IOException
TrueTypeException
-
compute
- Throws:
IOException
TrueTypeException
-
copySubset
-
createGlyphTable
protected void createGlyphTable(TTTable loca, TTTable glyf, de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] oldLocations, Set glyphs, boolean shortFormat) throws IOException, TrueTypeException - Throws:
IOException
TrueTypeException
-
getFont
-
getGlyphIndices
-
getResult
-