|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.CIDSubset
public class CIDSubset
Keeps track of the glyphs used in a document. This information is later used to build a subset of a font.
Constructor Summary | |
---|---|
CIDSubset()
|
Method Summary | |
---|---|
java.util.BitSet |
getGlyphIndexBitSet()
Returns a BitSet with bits set for each available glyph index in the subset. |
int |
getGlyphIndexForSubsetIndex(int subsetIndex)
Returns the original index of the glyph inside the (non-subset) font's glyph list. |
char[] |
getSubsetChars()
Returns a char array containing all Unicode characters that are in the subset. |
java.util.Map |
getSubsetGlyphs()
Returns an unmodifiable Map of the font subset. |
int |
getSubsetSize()
Returns the number of glyphs in the subset. |
char |
getUnicodeForSubsetIndex(int subsetIndex)
Returns the Unicode value for a subset index (character selector). |
int |
mapSubsetChar(int glyphIndex,
char unicode)
Maps a character to a character selector for a font subset. |
void |
setupFirstThreeGlyphs()
Adds the initial 3 glyphs which are the same for all CID subsets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CIDSubset()
Method Detail |
---|
public void setupFirstThreeGlyphs()
public int getGlyphIndexForSubsetIndex(int subsetIndex)
subsetIndex
- the subset index (character selector) to access the glyph
public char getUnicodeForSubsetIndex(int subsetIndex)
subsetIndex
- the subset index (character selector)
public int mapSubsetChar(int glyphIndex, char unicode)
glyphIndex
- the glyph index of the characterunicode
- the Unicode index of the character
public java.util.Map getSubsetGlyphs()
public char[] getSubsetChars()
public int getSubsetSize()
public java.util.BitSet getGlyphIndexBitSet()
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |