Modifier and Type | Method and Description |
---|---|
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
|
BitSet |
getGlyphIndices()
Returns a BitSet with bits set for each available glyph index in the subset.
|
Map<Integer,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.
|
int getOriginalGlyphIndex(int index)
index
- the subset index (character selector) to access the glyphint getUnicode(int index)
index
- the subset index (character selector)char getUnicodeFromGID(int glyphIndex)
glyphIndex
- The original glyph index of the character in the fontint getGIDFromChar(char ch)
ch
- The characterint mapChar(int glyphIndex, char unicode)
glyphIndex
- the glyph index of the characterunicode
- the Unicode index of the characterint mapCodePoint(int glyphIndex, int codePoint)
glyphIndex
- the glyph index of the charactercodePoint
- the Unicode index of the characterMap<Integer,Integer> getGlyphs()
char[] getChars()
int getNumberOfGlyphs()
BitSet getGlyphIndices()
int[] getWidths()
This is used to get an array for inserting in an output format. It should not be used for lookup.
Copyright © 2025 Apache Software Foundation. All rights reserved.