public interface CFFCharset
| 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.
|
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.
|
boolean isCIDFont()
void addSID(int gid,
int sid,
String name)
gid - GIDsid - SIDname - the postscript name of the glyphvoid addCID(int gid,
int cid)
gid - GIDcid - CIDint getSIDForGID(int gid)
gid - GIDint getGIDForSID(int sid)
sid - SIDint getGIDForCID(int cid)
cid - CIDint getSID(String name)
name - PostScript glyph nameString getNameForGID(int gid)
gid - GIDint getCIDForGID(int gid)
gid - GIDCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.