public class FontSupport extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
isoLatin1Encoding
character mapping from values to glyphs for the isoLatin1Encoding
|
static 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 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(String name,
int[] table)
get the encoding value of a glyph given its name and a charset.
|
static int |
findName(String name,
String[] table)
get the encoding value a glyph given its name and a name table.
|
static 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(String name)
get the encoding value of a glyph given its name, in the standard
charset.
|
public static final String[] stdNames
public static final int[] type1CExpertCharset
public static final int[] type1CExpertSubCharset
public static final String[] macExtras
public static final int[] macRomanEncoding
public static final int[] isoLatin1Encoding
public static final int[] winAnsiEncoding
public static final int[] standardEncoding
public static String getName(int i)
public static int findName(String name, String[] table)
name
- the name of the glyphtable
- the charset as an array of namespublic static int findName(String name, int[] table)
name
- the name of the glyphtable
- the charset tablepublic static int getStrIndex(String name)
name
- the name of the glyphCopyright © 2023. All rights reserved.