Package de.intarsys.cwt.font.truetype
Class CreateSubset
- java.lang.Object
-
- de.intarsys.cwt.font.truetype.CreateSubset
-
public class CreateSubset extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte[][]
SubsetTables
-
Constructor Summary
Constructors Constructor Description CreateSubset(TTFont font, java.util.Set glyphIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set
addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, java.util.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, java.util.Set glyphs, int codePoint)
Add dependent glyphs not yet included for composite glyphs.TTFont
compute()
protected TTFont
copySubset()
protected void
createGlyphTable(TTTable loca, TTTable glyf, de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] oldLocations, java.util.Set glyphs, boolean shortFormat)
TTFont
getFont()
java.util.Set
getGlyphIndices()
TTFont
getResult()
-
-
-
Constructor Detail
-
CreateSubset
public CreateSubset(TTFont font, java.util.Set glyphIndices)
-
-
Method Detail
-
addCompositeGlyphs
protected java.util.Set addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, java.util.Set glyphs) throws java.io.IOException, TrueTypeException
Add all dependent glyphs not yet included for any composite glyphs in the set of glyphs.- Parameters:
glyfRandom
-locations
-glyphs
-- Returns:
- Throws:
java.io.IOException
TrueTypeException
-
addCompositeGlyphs
protected void addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, java.util.Set glyphs, int codePoint) throws java.io.IOException, TrueTypeException
Add dependent glyphs not yet included for composite glyphs.- Parameters:
glyfRandom
-locations
-glyphs
-codePoint
-- Throws:
java.io.IOException
TrueTypeException
-
compute
public TTFont compute() throws java.io.IOException, TrueTypeException
- Throws:
java.io.IOException
TrueTypeException
-
copySubset
protected TTFont copySubset()
-
createGlyphTable
protected void createGlyphTable(TTTable loca, TTTable glyf, de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] oldLocations, java.util.Set glyphs, boolean shortFormat) throws java.io.IOException, TrueTypeException
- Throws:
java.io.IOException
TrueTypeException
-
getFont
public TTFont getFont()
-
getGlyphIndices
public java.util.Set getGlyphIndices()
-
getResult
public TTFont getResult()
-
-