public final class Glyphs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ADOBECYRILLIC_ENCODING
The characters in AdobeStandardCyrillicEncoding
|
static java.lang.String[] |
MAC_GLYPH_NAMES
Deprecated.
That array was supposed to represent the standard Macintosh ordering
of glyphs in a TrueType font (it does NOT correspond to the MacRoman encoding).
In addition some entries are incorrect.
|
static java.lang.String |
NOTDEF
Glyph name for the "notdef" glyph
|
static java.lang.String[] |
TEX8R_GLYPH_NAMES
Glyph names for tex8r encoding
|
static char[] |
WINANSI_ENCODING
The characters in WinAnsiEncoding
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
charToGlyphName(char ch)
Return the glyphname from a character,
eg, charToGlyphName('\\') returns "backslash"
|
static java.lang.String[] |
getCharNameAlternativesFor(java.lang.String charName)
Returns an array of char names which can serve as alternatives for the given one.
|
static java.lang.String |
getUnicodeSequenceForGlyphName(java.lang.String glyphName)
Returns a String containing the Unicode sequence the given glyph name represents.
|
static java.lang.String |
glyphToString(java.lang.String name)
Deprecated.
User getUnicodeCodePointsForGlyphName instead. This method only returns the
first Unicode code point it finds.
|
static java.lang.String |
stringToGlyph(java.lang.String name)
Return the string representation of a glyphname,
eg stringToGlyph("backslash") returns "\\"
|
public static final java.lang.String NOTDEF
@Deprecated public static final java.lang.String[] MAC_GLYPH_NAMES
public static final java.lang.String[] TEX8R_GLYPH_NAMES
public static final char[] WINANSI_ENCODING
public static final char[] ADOBECYRILLIC_ENCODING
public static java.lang.String charToGlyphName(char ch)
ch
- glyph to evaluatepublic static java.lang.String getUnicodeSequenceForGlyphName(java.lang.String glyphName)
glyphName
- the glyph name@Deprecated public static java.lang.String glyphToString(java.lang.String name)
name
- glyph to evaluatepublic static java.lang.String stringToGlyph(java.lang.String name)
name
- name of the glyphpublic static java.lang.String[] getCharNameAlternativesFor(java.lang.String charName)
charName
- the character name to search alternatives forCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.