Package com.adobe.fontengine.font.cff
Class Encoding
java.lang.Object
com.adobe.fontengine.font.cff.Encoding
Represents an encoding.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
charCode2gid
(int charCode, com.adobe.fontengine.font.cff.Charset charset) Return the gid for a character code.
-
Field Details
-
data
public final com.adobe.fontengine.font.cff.CFFByteArray dataThe container for our bytes, if the encoding is not predefined. If the encoding is predefined, thandata
isnull
. -
offset
public final int offsetThe offset of our bytes indata
if the encoding is not predefined. If the encoding is predefined, thandata
isnull
andoffset
is 0 or 1. Note that the value 0 is ambiguous, as it can be either the isoAdobe predefined charset (if data is null) or an offset in data (if data is not null).
-
-
Method Details
-
charCode2gid
public int charCode2gid(int charCode, com.adobe.fontengine.font.cff.Charset charset) throws InvalidFontException, UnsupportedFontException Return the gid for a character code.- Parameters:
charCode
- the character code to lookup.- Returns:
- the
gid
for that character code (can be 0 for .notdef) - Throws:
InvalidFontException
UnsupportedFontException
-