public class FontSupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int[] |
isoLatin1Encoding
character mapping from values to glyphs for the isoLatin1Encoding
|
static java.lang.String[] |
macExtras
extra names for the Macintosh glyph set.
|
static int[] |
macRomanEncoding
character mapping from values to glyphs for the Macintosh MacRoman
encoding
|
static int[] |
standardEncoding
character mapping from values to glyphs for Adobe's standard
character encoding
|
static java.lang.String[] |
stdNames
names for glyphs in the standard Adobe order.
|
static int[] |
type1CExpertCharset
glyph order of the glyphs for the Type1C Expert character set.
|
static int[] |
type1CExpertSubCharset
glyph order of the glyphs for the Type1C Expert Sub character set.
|
static int[] |
winAnsiEncoding
character mapping from values to glyphs for the Windows winAnsi
character encoding
|
Constructor and Description |
---|
FontSupport() |
Modifier and Type | Method and Description |
---|---|
static int |
findName(java.lang.String name,
int[] table)
get the encoding value of a glyph given its name and a charset.
|
static int |
findName(java.lang.String name,
java.lang.String[] table)
get the encoding value a glyph given its name and a name table.
|
static java.lang.String |
getName(int i)
get the name of a glyph from its encoding value (NOT the character
value), using the standard encoding.
|
static int |
getStrIndex(java.lang.String name)
get the encoding value of a glyph given its name, in the standard
charset.
|
public static final java.lang.String[] stdNames
public static final int[] type1CExpertCharset
public static final int[] type1CExpertSubCharset
public static final java.lang.String[] macExtras
public static final int[] macRomanEncoding
public static final int[] isoLatin1Encoding
public static final int[] winAnsiEncoding
public static final int[] standardEncoding
public static java.lang.String getName(int i)
public static int findName(java.lang.String name, java.lang.String[] table)
name
- the name of the glyphtable
- the charset as an array of namespublic static int findName(java.lang.String name, int[] table)
name
- the name of the glyphtable
- the charset tablepublic static int getStrIndex(java.lang.String name)
name
- the name of the glyph