public class CIDSubset
extends java.lang.Object
Constructor and Description |
---|
CIDSubset()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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<java.lang.Integer,java.lang.Integer> |
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 |
setupFirstGlyph()
Adds the first glyph which is reserved for .notdef for all CID subsets.
|
public void setupFirstGlyph()
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 java.util.Map<java.lang.Integer,java.lang.Integer> getSubsetGlyphs()
public char[] getSubsetChars()
public int getSubsetSize()
public java.util.BitSet getGlyphIndexBitSet()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.