Package org.docx4j.fonts.fop.fonts
Class Glyphs
java.lang.Object
org.docx4j.fonts.fop.fonts.Glyphs
public class Glyphs
extends java.lang.Object
Deprecated.
Use the Glyphs class from XML Graphics Commons instead!
This class provides a number of constants for glyph management.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]MAC_GLYPH_NAMESDeprecated.Glyph names for Mac encodingstatic java.lang.StringNOTDEFDeprecated.Glyph name for the "notdef" glyphstatic java.lang.String[]TEX8R_GLYPH_NAMESDeprecated.Glyph names for tex8r encodingstatic java.lang.String[]UNICODE_GLYPHSDeprecated.List of unicode glyphsstatic char[]WINANSI_ENCODINGDeprecated.The characters in WinAnsiEncoding -
Constructor Summary
Constructors Constructor Description Glyphs()Deprecated. -
Method Summary
Modifier and Type Method Description static java.lang.StringcharToGlyphName(char ch)Deprecated.Return the glyphname from a character, eg, charToGlyphName('\\') returns "backslash"static java.lang.StringglyphToString(java.lang.String name)Deprecated.Return the glyphname from a string, eg, glyphToString("\\") returns "backslash"static java.lang.StringstringToGlyph(java.lang.String name)Deprecated.Return the string representation of a glyphname, eg stringToGlyph("backslash") returns "\\"
-
Field Details
-
NOTDEF
public static final java.lang.String NOTDEFDeprecated.Glyph name for the "notdef" glyph- See Also:
- Constant Field Values
-
MAC_GLYPH_NAMES
public static final java.lang.String[] MAC_GLYPH_NAMESDeprecated.Glyph names for Mac encoding -
TEX8R_GLYPH_NAMES
public static final java.lang.String[] TEX8R_GLYPH_NAMESDeprecated.Glyph names for tex8r encoding -
WINANSI_ENCODING
public static final char[] WINANSI_ENCODINGDeprecated.The characters in WinAnsiEncoding -
UNICODE_GLYPHS
public static final java.lang.String[] UNICODE_GLYPHSDeprecated.List of unicode glyphs
-
-
Constructor Details
-
Glyphs
public Glyphs()Deprecated.
-
-
Method Details
-
charToGlyphName
public static final java.lang.String charToGlyphName(char ch)Deprecated.Return the glyphname from a character, eg, charToGlyphName('\\') returns "backslash"- Parameters:
ch- glyph to evaluate- Returns:
- the name of the glyph
-
glyphToString
public static final java.lang.String glyphToString(java.lang.String name)Deprecated.Return the glyphname from a string, eg, glyphToString("\\") returns "backslash"- Parameters:
name- glyph to evaluate- Returns:
- the name of the glyph TODO: javadocs for glyphToString and stringToGlyph are confused TODO: Improve method names
-
stringToGlyph
public static java.lang.String stringToGlyph(java.lang.String name)Deprecated.Return the string representation of a glyphname, eg stringToGlyph("backslash") returns "\\"- Parameters:
name- name of the glyph- Returns:
- the string representation
-