public class CreateSubset
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static byte[][] |
SubsetTables |
| Constructor and Description |
|---|
CreateSubset(TTFont font,
java.util.Set glyphIndices) |
| Modifier and Type | Method and 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() |
public CreateSubset(TTFont font, java.util.Set glyphIndices)
protected java.util.Set addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom,
int[] locations,
java.util.Set glyphs)
throws java.io.IOException,
TrueTypeException
glyfRandom - locations - glyphs - java.io.IOExceptionTrueTypeExceptionprotected void addCompositeGlyphs(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom,
int[] locations,
java.util.Set glyphs,
int codePoint)
throws java.io.IOException,
TrueTypeException
glyfRandom - locations - glyphs - codePoint - java.io.IOExceptionTrueTypeExceptionpublic TTFont compute() throws java.io.IOException, TrueTypeException
java.io.IOExceptionTrueTypeExceptionprotected TTFont copySubset()
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
java.io.IOExceptionTrueTypeExceptionpublic TTFont getFont()
public java.util.Set getGlyphIndices()
public TTFont getResult()