Package com.adobe.fontengine.font.cff
Class Encoding
- java.lang.Object
-
- com.adobe.fontengine.font.cff.Encoding
-
public final class Encoding extends java.lang.ObjectRepresents an encoding.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcharCode2gid(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, thandataisnull.
-
offset
public final int offset
The offset of our bytes indataif the encoding is not predefined. If the encoding is predefined, thandataisnullandoffsetis 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, UnsupportedFontExceptionReturn the gid for a character code.- Parameters:
charCode- the character code to lookup.- Returns:
- the
gidfor that character code (can be 0 for .notdef) - Throws:
InvalidFontExceptionUnsupportedFontException
-
-