|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.truetype.GlyfTable
public class GlyfTable
This "glyf" table in a TrueType font file contains information that describes the glyphs. This class is responsible for creating a subset of the "glyf" table given a set of glyph indices.
Field Summary | |
---|---|
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 Summary | |
---|---|
GlyfTable(FontFileReader in,
OFMtxEntry[] metrics,
OFDirTabEntry dirTableEntry,
java.util.Map<java.lang.Integer,java.lang.Integer> glyphs)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<java.lang.Integer,java.lang.Integer> subset
protected java.util.Set<java.lang.Integer> composedGlyphs
Constructor Detail |
---|
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
Method Detail |
---|
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 glyph
java.io.IOException
- an I/O error
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |