public class CIDSubset extends Object
Constructor and Description |
---|
CIDSubset() |
Modifier and Type | Method and Description |
---|---|
BitSet |
getGlyphIndexBitSet()
Returns a BitSet with bits set for each available glyph index.
|
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.
|
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.
|
public void setupFirstThreeGlyphs()
public int getGlyphIndexForSubsetIndex(int subsetIndex)
subsetIndex
- the subset index (character selector) to access the glyphpublic 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 characterpublic Map getSubsetGlyphs()
public char[] getSubsetChars()
public int getSubsetSize()
public BitSet getGlyphIndexBitSet()
Copyright © 2007-2019. All Rights Reserved.