Package org.verapdf.pd.font
Class Encoding
java.lang.Object
org.verapdf.pd.font.Encoding
Represents encoding of font as given in font dictionary.
- Author:
- Sergey Shemyakov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsCode
(int code) Checks if mapping for given code is available.static Encoding
empty()
getName
(int code) Gets name of char for it's code via this encoding.
-
Constructor Details
-
Encoding
Constructor for encoding of type COSName.- Parameters:
predefinedEncoding
- is ASAtom value of Encoding.
-
Encoding
-
Encoding
Constructor for encoding of type COSDictionary.- Parameters:
baseEncoding
- is ASAtom representation of BaseEncoding entry in Encoding.differences
- is Map representation of Differences entry in Encoding.
-
-
Method Details
-
empty
-
getName
Gets name of char for it's code via this encoding.- Parameters:
code
- is character code.- Returns:
- glyph name for given character code or null if the internal font encoding should be used.
-
containsCode
public boolean containsCode(int code) Checks if mapping for given code is available.- Parameters:
code
- is character code to check.- Returns:
- true if encoding has mapping for this code.
-