|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CIDSet
Declares methods to retrieve font information (glyph indices, widths, unicode values) from a CID font.
Method Summary | |
---|---|
char[] |
getChars()
Returns a char array containing all Unicode characters that are in the subset. |
int |
getGIDFromChar(char ch)
Returns the glyph index from the original font from a character |
java.util.BitSet |
getGlyphIndices()
Returns a BitSet with bits set for each available glyph index in the subset. |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getGlyphs()
Returns an unmodifiable Map of the font subset. |
int |
getNumberOfGlyphs()
Returns the number of glyphs in the subset. |
int |
getOriginalGlyphIndex(int index)
Returns the original index of the glyph inside the (non-subset) font's glyph list. |
int |
getUnicode(int index)
Returns the Unicode value for a subset index (character selector). |
char |
getUnicodeFromGID(int glyphIndex)
Gets the unicode character from the original font glyph index |
int[] |
getWidths()
Return the array of widths. |
int |
mapChar(int glyphIndex,
char unicode)
Maps a character to a character selector for a font subset. |
int |
mapCodePoint(int glyphIndex,
int codePoint)
Maps a character to a character selector for a font subset. |
Method Detail |
---|
int getOriginalGlyphIndex(int index)
index
- the subset index (character selector) to access the glyph
int getUnicode(int index)
index
- the subset index (character selector)
char getUnicodeFromGID(int glyphIndex)
glyphIndex
- The original glyph index of the character in the font
int getGIDFromChar(char ch)
ch
- The character
int mapChar(int glyphIndex, char unicode)
glyphIndex
- the glyph index of the characterunicode
- the Unicode index of the character
int mapCodePoint(int glyphIndex, int codePoint)
glyphIndex
- the glyph index of the charactercodePoint
- the Unicode index of the character
java.util.Map<java.lang.Integer,java.lang.Integer> getGlyphs()
char[] getChars()
int getNumberOfGlyphs()
java.util.BitSet getGlyphIndices()
int[] getWidths()
This is used to get an array for inserting in an output format. It should not be used for lookup.
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |