| java.lang.Object com.sun.pdfview.font.FontSupport
FontSupport | public class FontSupport (Code) | | some constants and utility functions for font support.
author: Mike Wessler |
Method Summary | |
public static int | findName(String name, String[] table) get the encoding value a glyph given its name and a name table. | public static int | findName(String name, int[] table) get the encoding value of a glyph given its name and a charset. | public static String | getName(int i) get the name of a glyph from its encoding value (NOT the character
value), using the standard encoding. | public static int | getStrIndex(String name) get the encoding value of a glyph given its name, in the standard
charset. |
isoLatin1Encoding | final public static int isoLatin1Encoding(Code) | | character mapping from values to glyphs for the isoLatin1Encoding
|
macExtras | final public static String macExtras(Code) | | extra names for the Macintosh glyph set. This array should be
considered to be appended to the stdNames array. The stdValues array
already contains values for this set.
|
macRomanEncoding | final public static int macRomanEncoding(Code) | | character mapping from values to glyphs for the Macintosh MacRoman
encoding
|
standardEncoding | final public static int standardEncoding(Code) | | character mapping from values to glyphs for Adobe's standard
character encoding
|
stdNames | final public static String stdNames(Code) | | names for glyphs in the standard Adobe order. This is the ordering
of the glyphs in a font, not the mapping of character number to
character.
|
stdValues | final static String stdValues(Code) | | characters for glyphs in the standard order. These are string "values"
to go with the names in stdNames. Not all glyphs have been translated
to their unicode values. In many cases, the name of the glyph has
been appended to an ASCII approximation of the glyph. Strings longer
than 3 characters have this characteristic. To get the character,
use the string if it contains 3 or fewer characters; otherwise,
grab the first character off the string and use that.
|
type1CExpertCharset | final public static int type1CExpertCharset(Code) | | glyph order of the glyphs for the Type1C Expert character set. These
are indices into the glyph name array.
|
type1CExpertSubCharset | final public static int type1CExpertSubCharset(Code) | | glyph order of the glyphs for the Type1C Expert Sub character set.
These are indices into the glyph name array.
|
winAnsiEncoding | final public static int winAnsiEncoding(Code) | | character mapping from values to glyphs for the Windows winAnsi
character encoding
|
findName | public static int findName(String name, String[] table)(Code) | | get the encoding value a glyph given its name and a name table.
Parameters: name - the name of the glyph Parameters: table - the charset as an array of names the index of the name in the table, or -1 if the namecannot be found in the table |
findName | public static int findName(String name, int[] table)(Code) | | get the encoding value of a glyph given its name and a charset.
Parameters: name - the name of the glyph Parameters: table - the charset table the index of the name in the charset. |
getName | public static String getName(int i)(Code) | | get the name of a glyph from its encoding value (NOT the character
value), using the standard encoding.
|
getStrIndex | public static int getStrIndex(String name)(Code) | | get the encoding value of a glyph given its name, in the standard
charset. This is equivalent to findName(name, FontSupport.stdNames).
Parameters: name - the name of the glyph the index of the name in stdNames, or -1 if the name doesn'tappear in stdNames. |
|
|