de.intarsys.cwt.font.truetype
Class CreateSubset
java.lang.Object
de.intarsys.cwt.font.truetype.CreateSubset
public class CreateSubset
- extends java.lang.Object
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubsetTables
public static byte[][] SubsetTables
CreateSubset
public CreateSubset(TTFont font,
java.util.Set glyphIndices)
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()