|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fontbox.ttf.CMAPEncodingEntry
public class CMAPEncodingEntry
An encoding entry for a cmap.
Constructor Summary | |
---|---|
CMAPEncodingEntry()
|
Method Summary | |
---|---|
int |
getGlyphId(int characterCode)
Returns the GlyphId linked with the given character code. |
int[] |
getGlyphIdToCharacterCode()
|
int |
getPlatformEncodingId()
|
int |
getPlatformId()
|
void |
initData(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream. |
void |
initSubtable(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream. |
protected void |
processSubtype0(TrueTypeFont ttf,
TTFDataStream data)
Initialize the CMapEntry when it is a subtype 0 |
protected void |
processSubtype10(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 10 subtable. |
protected void |
processSubtype12(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 12 subtable. |
protected void |
processSubtype13(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 13 subtable. |
protected void |
processSubtype14(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 14 subtable. |
protected void |
processSubtype2(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Read a format 2 subtable. |
protected void |
processSubtype4(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 4 subtable. |
protected void |
processSubtype6(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 6 subtable. |
protected void |
processSubtype8(TrueTypeFont ttf,
TTFDataStream data,
int numGlyphs)
Reads a format 8 subtable. |
void |
setGlyphIdToCharacterCode(int[] glyphIdToCharacterCodeValue)
|
void |
setPlatformEncodingId(int platformEncodingIdValue)
|
void |
setPlatformId(int platformIdValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMAPEncodingEntry()
Method Detail |
---|
public void initData(TrueTypeFont ttf, TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.
IOException
- If there is an error reading the data.public void initSubtable(TrueTypeFont ttf, TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.
IOException
- If there is an error reading the data.protected void processSubtype8(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype10(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype12(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype13(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype14(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype6(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype4(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype2(TrueTypeFont ttf, TTFDataStream data, int numGlyphs) throws IOException
ttf
- the TrueTypeFont instance holding the parsed data.data
- the data stream of the to be parsed ttf fontnumGlyphs
- number of glyphs to be read
IOException
- If there is an error parsing the true type font.protected void processSubtype0(TrueTypeFont ttf, TTFDataStream data) throws IOException
ttf
- data
-
IOException
public int[] getGlyphIdToCharacterCode()
public void setGlyphIdToCharacterCode(int[] glyphIdToCharacterCodeValue)
glyphIdToCharacterCodeValue
- The glyphIdToCharacterCode to set.public int getPlatformEncodingId()
public void setPlatformEncodingId(int platformEncodingIdValue)
platformEncodingIdValue
- The platformEncodingId to set.public int getPlatformId()
public void setPlatformId(int platformIdValue)
platformIdValue
- The platformId to set.public int getGlyphId(int characterCode)
characterCode
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |