Go to the source code of this file.
PDF font object
A font representation.
Create a PDFont object from a font object in a PDF dictionary.
- Parameters
-
parser | Parser from which to fetch content necessary to generate the font object |
fontDict | Font dictionary owning the font object |
obj | Font object in PDF dictionary |
- Returns
- A new PDFont object
Get the encoding used for the font.
- Parameters
-
- Returns
- The PDStringEncoding value of the encoding, or PDStringEncodingUndefined if undefined
Get the name of the encoding used for the font.
- Parameters
-
- Returns
- The string value of the encoding (e.g. /Identity-H or /WinAnsiEncoding) or NULL if undefined
Process the given string, applying ToUnicode CMap (if applicable), encMap byte mapping (if applicable), etc., and return the result as a new, auto- released string. If no applicable mappings are available, the string is returned as is. If possible, the string's enc value is defined in the process.
- Parameters
-
font | The font object |
string | String to process |
- Returns
- The same string, or a new string that has been processed