public final class CFFExpertCharset extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCID(int gid,
int cid)
Adds a new GID/CID combination to the charset.
|
void |
addSID(int gid,
int sid,
String name)
Adds a new GID/SID/name combination to the charset.
|
int |
getCIDForGID(int gid)
Returns the CID for the given GID.
|
int |
getGIDForCID(int cid)
Returns the GID for a given CID.
|
int |
getGIDForSID(int sid)
Returns the GID for the given SID.
|
static CFFExpertCharset |
getInstance()
Returns an instance of the CFFExpertCharset class.
|
String |
getNameForGID(int gid)
Returns the PostScript glyph name for the given GID.
|
int |
getSID(String name)
Returns the SID for a given PostScript name, you would think this is not needed,
but some fonts have glyphs beyond their encoding with charset SID names.
|
int |
getSIDForGID(int gid)
Returns the SID for a given GID.
|
boolean |
isCIDFont()
Indicates if the charset belongs to a CID font.
|
public static CFFExpertCharset getInstance()
public boolean isCIDFont()
CFFCharsetisCIDFont in interface CFFCharsetpublic void addSID(int gid,
int sid,
String name)
CFFCharsetaddSID in interface CFFCharsetgid - GIDsid - SIDname - the postscript name of the glyphpublic void addCID(int gid,
int cid)
CFFCharsetaddCID in interface CFFCharsetgid - GIDcid - CIDpublic int getSIDForGID(int gid)
CFFCharsetgetSIDForGID in interface CFFCharsetgid - GIDpublic int getGIDForSID(int sid)
CFFCharsetgetGIDForSID in interface CFFCharsetsid - SIDpublic int getGIDForCID(int cid)
CFFCharsetgetGIDForCID in interface CFFCharsetcid - CIDpublic int getSID(String name)
CFFCharsetgetSID in interface CFFCharsetname - PostScript glyph namepublic String getNameForGID(int gid)
CFFCharsetgetNameForGID in interface CFFCharsetgid - GIDpublic int getCIDForGID(int gid)
CFFCharsetgetCIDForGID in interface CFFCharsetgid - GIDCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.