phelps.awt.font
public class Encoding extends Object
Version: $Revision: 1.8 $ $Date: 2003/12/19 12:50:57 $
Field Summary | |
---|---|
static Encoding | ADOBE_STANDARD |
static Encoding | IDENTITY |
static Encoding | MAC_EXPERT |
static Encoding | MAC_ROMAN |
static Encoding | PDF_DOC |
static Encoding | SYMBOL |
static Encoding | UNICODE |
static Encoding | WIN_ANSI |
static Encoding | ZAPF_DINGBATS |
Constructor Summary | |
---|---|
Encoding(String name, String[] map) Creates Encoding out of array of character names such that cnames[ch] = cname . | |
Encoding(Encoding en, Object[] diff) |
Method Summary | |
---|---|
boolean | equals(Object o) |
char | getChar(String name) Returns character associated with name. |
static Encoding | getInstance(String name)
Returns a predefined encoding by name, or null if no encoding by that name.
|
String | getName() Returns name of encoding. |
String | getName(char ch) Returns character name in encoding. |
CMap | guessToUnicode()
Estimates the Unicode mapping based on matching glyph names with standard Unicode names.
|
boolean | hasUnicode() Returns true iff encoding has full Unicode mappings, and so is invertible from this encoding to Unicode and back. |
CMap | mapTo(Encoding to) Returns CMap that maps characters to another encoding's. |
String | toString() |
cnames[ch] = cname
.null
if no encoding by that name.
Valid names are: Identity
, MacRomanEncoding
, MacExpertEncoding
, WinAnsiEncoding
, PDFDocEncoding
, ZapfDingbatsEncoding
, SymbolEncoding
.getName((char)65).equals("A")
.See Also: "Unicode and Glyph Names"
true
iff encoding has full Unicode mappings, and so is invertible from this encoding to Unicode and back.