iText 8.0.5 API
|
Public Member Functions |
|
virtual String | GetBaseEncoding () |
virtual bool | IsFontSpecific () |
virtual bool | AddSymbol (int code, int unicode) |
virtual int | GetUnicode (int index) |
Gets unicode value for corresponding font's char code. More... |
|
virtual int | GetUnicodeDifference (int index) |
virtual bool | HasDifferences () |
virtual String | GetDifference (int index) |
virtual void | SetDifference (int index, String difference) |
Sets a new value in the differences array. More... |
|
virtual byte[] | ConvertToBytes (String text) |
Converts a String to a byte array according to the encoding. More... |
|
virtual int | ConvertToByte (int unicode) |
Converts a unicode symbol or font specific code to byte according to the encoding. More... |
|
virtual bool | CanEncode (int unicode) |
Check whether a unicode symbol or font specific code can be converted to byte according to the encoding. More... |
|
virtual bool | CanDecode (int code) |
Check whether a byte code can be converted to unicode symbol according to the encoding. More... |
|
virtual bool | IsBuiltWith (String encoding) |
Checks whether the FontEncoding was built with corresponding encoding. More... |
|
Static Public Member Functions |
|
static iText.IO.Font.FontEncoding | CreateFontEncoding (String baseEncoding) |
static iText.IO.Font.FontEncoding | CreateEmptyFontEncoding () |
static iText.IO.Font.FontEncoding | CreateFontSpecificEncoding () |
This encoding will base on font encoding (FontSpecific encoding in Type 1 terminology) More... |
|
static void | FillFontEncoding (iText.IO.Font.FontEncoding encoding) |
Fill FontEncoding object with default data. More... |
|
Static Public Attributes |
|
const String | FONT_SPECIFIC = "FontSpecific" |
const String | NOTDEF = ".notdef" |
A not defined character in a custom PDF encoding. More... |
|
Package Functions |
|
virtual void | FillCustomEncoding () |
virtual void | FillNamedEncoding () |
virtual void | FillStandardEncoding () |
Static Package Functions |
|
static String | NormalizeEncoding (String enc) |
Normalize the encoding names. More... |
|
Package Attributes |
|
String | baseEncoding |
Base font encoding. More... |
|
bool | fontSpecific |
true if the font must use its built in encoding. More... |
|
IntHashtable | unicodeToCode |
Mapping map from unicode to simple code according to the encoding. More... |
|
int[] | codeToUnicode |
String[] | differences |
Encoding names. More... |
|
IntHashtable | unicodeDifferences |
Encodings unicode differences More... |
|
|
inlinevirtual |
Check whether a byte
code can be converted to unicode symbol according to the encoding.
code | a byte code to be checked. |
true
if code could be decoded.
|
inlinevirtual |
Check whether a unicode symbol or font specific code can be converted to byte
according to the encoding.
unicode | a unicode symbol or font specific code to be checked. |
true
if ch
could be encoded.
|
inlinevirtual |
Converts a unicode symbol or font specific code to byte
according to the encoding.
unicode | a unicode symbol or FontSpecif code to be converted. |
byte
representing the conversion according to the encoding
|
inlinevirtual |
Converts a String
to a byte
array according to the encoding.
Converts a String
to a byte
array according to the encoding. String could contain a unicode symbols or font specific codes.
text | the String to be converted. |
byte
representing the conversion according to the encoding
|
inlinestatic |
This encoding will base on font encoding (FontSpecific encoding in Type 1 terminology)
|
inlinestatic |
|
inlinevirtual |
Gets unicode value for corresponding font's char code.
index | font's char code |
|
inlinevirtual |
Checks whether the FontEncoding was built with corresponding encoding.
encoding | an encoding |
|
inlinestaticpackage |
Normalize the encoding names.
Normalize the encoding names. "winansi" is changed to "Cp1252" and "macroman" is changed to "MacRoman".
enc | the encoding to be normalized |
|
inlinevirtual |
Sets a new value in the differences array.
Sets a new value in the differences array. See differences.
index | position to replace |
difference | new difference value |
|
package |
Base font encoding.
|
package |
Encoding names.
|
package |
true
if the font must use its built in encoding.
true
if the font must use its built in encoding. In that case the encoding
is only used to map a char to the position inside the font, not to the expected char name.
|
static |
A not defined character in a custom PDF encoding.
|
package |
Encodings unicode differences
|
package |
Mapping map from unicode to simple code according to the encoding.