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

Go to the source code of this file.

Functions

PDFontDictionaryRef PDFontDictionaryCreate (PDParserRef parser, PDObjectRef pageObject)
 
PDFontRef PDFontDictionaryGetFont (PDFontDictionaryRef fontDict, const char *name)
 
void PDFontDictionaryApplyEncodingObject (PDFontDictionaryRef fontDict, PDFontRef font, PDObjectRef encodingOb)
 
void PDFontDictionaryApplyEncodingDictionary (PDFontDictionaryRef fontDict, PDFontRef font, PDDictionaryRef encoding)
 

Detailed Description

PDF font dictionary for a page or a set of pages.

Convenience methods for handling PDF font dictionaries.

Function Documentation

void PDFontDictionaryApplyEncodingDictionary ( PDFontDictionaryRef  fontDict,
PDFontRef  font,
PDDictionaryRef  encoding 
)

Apply the given encoding to the font. Due to the missing object ID compared to PDFontDictionaryApplyEncodingObject, this method does nothing practically useful except provide a convenient point for the actual processing of encodings.

Parameters
fontDictThe font dictionary owning the font
fontThe font object
encodingThe encoding dictionary
void PDFontDictionaryApplyEncodingObject ( PDFontDictionaryRef  fontDict,
PDFontRef  font,
PDObjectRef  encodingOb 
)

Apply the given encoding to the font. The reason why this is done in the font dictionary is because, often, several fonts inside the same font dictionary share the same encoding object. The font dictionary keeps track of all processed encodings, using cached values when the same encoding is encountered multiple times.

Parameters
fontDictThe font dictionary owning the font
fontThe font object
encodingThe encoding object
PDFontDictionaryRef PDFontDictionaryCreate ( PDParserRef  parser,
PDObjectRef  pageObject 
)

Create a font dictionary for the specified page.

Parameters
parserParser reference
pageObjectPage reference
Returns
A new font dictionary object.
PDFontRef PDFontDictionaryGetFont ( PDFontDictionaryRef  fontDict,
const char *  name 
)

Get the font with the given name, or NULL if no such font exists in this dictionary.

Parameters
fontDictThe font dictionary
nameThe name of the font
Returns
PDFont object or NULL if no such font exists