public class CmapTable extends TTFTable
| Modifier and Type | Field and Description | 
|---|---|
| static int | ENCODING_MAC_ROMAN | 
| static int | ENCODING_UNICODE_1_0 | 
| static int | ENCODING_UNICODE_1_1 | 
| static int | ENCODING_UNICODE_2_0_BMP | 
| static int | ENCODING_UNICODE_2_0_FULL | 
| static int | ENCODING_WIN_BIG5 | 
| static int | ENCODING_WIN_JOHAB | 
| static int | ENCODING_WIN_PRC | 
| static int | ENCODING_WIN_SHIFT_JIS | 
| static int | ENCODING_WIN_SYMBOL | 
| static int | ENCODING_WIN_UNICODE_BMP | 
| static int | ENCODING_WIN_UNICODE_FULL | 
| static int | ENCODING_WIN_WANSUNG | 
| static int | PLATFORM_MACINTOSH | 
| static int | PLATFORM_UNICODE | 
| static int | PLATFORM_WINDOWS | 
| static String | TAGA tag used to identify this table. | 
font, initialized| Modifier and Type | Method and Description | 
|---|---|
| CmapSubtable[] | getCmaps() | 
| CmapSubtable | getSubtable(int platformId,
           int platformEncodingId)Returns the subtable, if any, for the given platform and encoding. | 
| void | read(TrueTypeFont ttf,
    org.apache.fontbox.ttf.TTFDataStream data)This will read the required data from the stream. | 
| void | setCmaps(CmapSubtable[] cmapsValue) | 
getCheckSum, getInitialized, getLength, getOffset, getTagpublic static final String TAG
public static final int PLATFORM_UNICODE
public static final int PLATFORM_MACINTOSH
public static final int PLATFORM_WINDOWS
public static final int ENCODING_MAC_ROMAN
public static final int ENCODING_WIN_SYMBOL
public static final int ENCODING_WIN_UNICODE_BMP
public static final int ENCODING_WIN_SHIFT_JIS
public static final int ENCODING_WIN_BIG5
public static final int ENCODING_WIN_PRC
public static final int ENCODING_WIN_WANSUNG
public static final int ENCODING_WIN_JOHAB
public static final int ENCODING_WIN_UNICODE_FULL
public static final int ENCODING_UNICODE_1_0
public static final int ENCODING_UNICODE_1_1
public static final int ENCODING_UNICODE_2_0_BMP
public static final int ENCODING_UNICODE_2_0_FULL
public void read(TrueTypeFont ttf, org.apache.fontbox.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 CmapSubtable[] getCmaps()
public void setCmaps(CmapSubtable[] cmapsValue)
cmapsValue - The cmaps to set.public CmapSubtable getSubtable(int platformId, int platformEncodingId)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.