public final class Glyphs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ADOBECYRILLIC_ENCODING
The characters in AdobeStandardCyrillicEncoding
|
private static java.util.Map |
CHARNAME_ALTERNATIVES |
private static java.util.Map |
CHARNAMES_TO_UNICODE |
private static java.lang.String[] |
DINGBATS_GLYPHS |
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
|
private static java.lang.String[] |
UNICODE_GLYPHS
List of unicode glyphs
|
static char[] |
WINANSI_ENCODING
The characters in WinAnsiEncoding
|
Modifier | Constructor and Description |
---|---|
private |
Glyphs() |
Modifier and Type | Method and Description |
---|---|
private static void |
addAlternatives(java.util.Map map,
java.lang.String[] alternatives) |
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.
|
private static char |
hexToChar(java.lang.String hex) |
private static java.lang.String[] |
loadGlyphList(java.lang.String filename,
java.util.Map charNameToUnicodeMap) |
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
private static final java.lang.String[] UNICODE_GLYPHS
private static final java.lang.String[] DINGBATS_GLYPHS
private static final java.util.Map CHARNAME_ALTERNATIVES
private static final java.util.Map CHARNAMES_TO_UNICODE
private static void addAlternatives(java.util.Map map, java.lang.String[] alternatives)
private static java.lang.String[] loadGlyphList(java.lang.String filename, java.util.Map charNameToUnicodeMap)
private static char hexToChar(java.lang.String hex)
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 for