Pajdeg  0.2.2
Pajdeg
PDFont.h File Reference
#include "PDDefines.h"

Go to the source code of this file.

Functions

PDFontRef PDFontCreate (PDParserRef parser, PDFontDictionaryRef fontDict, PDObjectRef obj)
 
PDStringRef PDFontGetEncodingName (PDFontRef font)
 
PDStringEncoding PDFontGetEncoding (PDFontRef font)
 
PDStringRef PDFontProcessString (PDFontRef font, PDStringRef string)
 

Detailed Description

PDF font object

A font representation.

Function Documentation

PDFontRef PDFontCreate ( PDParserRef  parser,
PDFontDictionaryRef  fontDict,
PDObjectRef  obj 
)

Create a PDFont object from a font object in a PDF dictionary.

Parameters
parserParser from which to fetch content necessary to generate the font object
fontDictFont dictionary owning the font object
objFont object in PDF dictionary
Returns
A new PDFont object
PDStringEncoding PDFontGetEncoding ( PDFontRef  font)

Get the encoding used for the font.

Parameters
fontThe font object
Returns
The PDStringEncoding value of the encoding, or PDStringEncodingUndefined if undefined
PDStringRef PDFontGetEncodingName ( PDFontRef  font)

Get the name of the encoding used for the font.

Parameters
fontThe font object
Returns
The string value of the encoding (e.g. /Identity-H or /WinAnsiEncoding) or NULL if undefined
PDStringRef PDFontProcessString ( PDFontRef  font,
PDStringRef  string 
)

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
fontThe font object
stringString to process
Returns
The same string, or a new string that has been processed