public final class Encoding extends Object
Modifier and Type | Field and Description |
---|---|
com.adobe.fontengine.font.cff.CFFByteArray |
data
The container for our bytes, if the encoding is not predefined.
|
int |
offset
The offset of our bytes in
data if the encoding is
not predefined. |
Modifier and Type | Method and Description |
---|---|
int |
charCode2gid(int charCode,
com.adobe.fontengine.font.cff.Charset charset)
Return the gid for a character code.
|
public final com.adobe.fontengine.font.cff.CFFByteArray data
data
is null
.public final int offset
data
if the encoding is
not predefined.
If the encoding is predefined, than data
is null
and offset
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).public int charCode2gid(int charCode, com.adobe.fontengine.font.cff.Charset charset) throws InvalidFontException, UnsupportedFontException
charCode
- the character code to lookup.gid
for that character code
(can be 0 for .notdef)InvalidFontException
UnsupportedFontException
Copyright © 2010 - 2020 Adobe. All Rights Reserved