public class GlyfTable extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GlyfTable.GlyfFlags |
| Modifier and Type | Field and Description |
|---|---|
protected Set<Integer> |
composedGlyphs
All the glyphs that are composed, but do not appear in the subset.
|
protected Set<Integer> |
compositeGlyphs
All the composite glyphs that appear in the subset.
|
protected Map<Integer,Integer> |
subset |
| Constructor and Description |
|---|
GlyfTable(FontFileReader in,
OFMtxEntry[] metrics,
OFDirTabEntry dirTableEntry,
Map<Integer,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.
|
Set<Integer> |
retrieveComposedGlyphs(int indexInOriginal)
Reads a composite glyph at a given index and retrieves all the glyph indices of contingent
composed glyphs.
|
protected Set<Integer> compositeGlyphs
public GlyfTable(FontFileReader in, OFMtxEntry[] metrics, OFDirTabEntry dirTableEntry, Map<Integer,Integer> glyphs) throws IOException
IOExceptionprotected void populateGlyphsWithComposites()
throws IOException
IOException - an I/O errorprotected void addAllComposedGlyphsToSubset()
public boolean isComposite(int indexInOriginal)
throws IOException
IOExceptionpublic Set<Integer> retrieveComposedGlyphs(int indexInOriginal) throws IOException
indexInOriginal - the glyph index of the composite glyphIOException - an I/O errorCopyright © 2023 Apache Software Foundation. All rights reserved.