public class GlyfTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.Integer> |
composedGlyphs
All the glyphs that are composed, but do not appear in the subset.
|
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
subset |
Constructor and Description |
---|
GlyfTable(FontFileReader in,
OFMtxEntry[] metrics,
OFDirTabEntry dirTableEntry,
java.util.Map<java.lang.Integer,java.lang.Integer> glyphs) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAllComposedGlyphsToSubset()
Adds to the subset, all the glyphs that are composed by a glyph, but do not appear themselves
in the subset.
|
boolean |
isComposite(int indexInOriginal) |
protected void |
populateGlyphsWithComposites()
Populates the map of subset glyphs with all the glyphs that compose the glyphs in the subset.
|
java.util.Set<java.lang.Integer> |
retrieveComposedGlyphs(int indexInOriginal)
Reads a composite glyph at a given index and retrieves all the glyph indices of contingent
composed glyphs.
|
protected final java.util.Map<java.lang.Integer,java.lang.Integer> subset
protected java.util.Set<java.lang.Integer> composedGlyphs
public GlyfTable(FontFileReader in, OFMtxEntry[] metrics, OFDirTabEntry dirTableEntry, java.util.Map<java.lang.Integer,java.lang.Integer> glyphs) throws java.io.IOException
java.io.IOException
protected void populateGlyphsWithComposites() throws java.io.IOException
java.io.IOException
- an I/O errorprotected void addAllComposedGlyphsToSubset()
public boolean isComposite(int indexInOriginal) throws java.io.IOException
java.io.IOException
public java.util.Set<java.lang.Integer> retrieveComposedGlyphs(int indexInOriginal) throws java.io.IOException
indexInOriginal
- the glyph index of the composite glyphjava.io.IOException
- an I/O errorCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.