public final class Glyphs extends Object
Modifier and Type | Field | Description |
---|---|---|
static char[] |
ADOBECYRILLIC_ENCODING |
The characters in AdobeStandardCyrillicEncoding
|
static 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).
|
static String |
NOTDEF |
Glyph name for the "notdef" glyph
|
static String[] |
TEX8R_GLYPH_NAMES |
Glyph names for tex8r encoding
|
static char[] |
WINANSI_ENCODING |
The characters in WinAnsiEncoding
|
Modifier and Type | Method | Description |
---|---|---|
static String |
charToGlyphName(char ch) |
Return the glyphname from a character,
eg, charToGlyphName('\\') returns "backslash"
|
static String[] |
getCharNameAlternativesFor(String charName) |
Returns an array of char names which can serve as alternatives for the given one.
|
static String |
getUnicodeSequenceForGlyphName(String glyphName) |
Returns a String containing the Unicode sequence the given glyph name represents.
|
static String |
glyphToString(String name) |
Deprecated.
User getUnicodeCodePointsForGlyphName instead.
|
static String |
stringToGlyph(String name) |
Return the string representation of a glyphname,
eg stringToGlyph("backslash") returns "\\"
|
public static final String NOTDEF
@Deprecated public static final String[] MAC_GLYPH_NAMES
public static final String[] TEX8R_GLYPH_NAMES
public static final char[] WINANSI_ENCODING
public static final char[] ADOBECYRILLIC_ENCODING
public static String charToGlyphName(char ch)
ch
- glyph to evaluatepublic static String getUnicodeSequenceForGlyphName(String glyphName)
glyphName
- the glyph name@Deprecated public static String glyphToString(String name)
name
- glyph to evaluatepublic static String stringToGlyph(String name)
name
- name of the glyphpublic static String[] getCharNameAlternativesFor(String charName)
charName
- the character name to search alternatives forCopyright © 2018 Apache Software Foundation. All rights reserved.