Package com.adobe.fontengine.font.cff
Class Encoding
- java.lang.Object
-
- com.adobe.fontengine.font.cff.Encoding
-
public final class Encoding extends java.lang.Object
Represents an encoding.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
charCode2gid(int charCode, com.adobe.fontengine.font.cff.Charset charset)
Return the gid for a character code.
-
-
-
Field Detail
-
data
public final com.adobe.fontengine.font.cff.CFFByteArray data
The container for our bytes, if the encoding is not predefined. If the encoding is predefined, thandata
isnull
.
-
offset
public final int offset
The 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 Detail
-
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
-
-