Model Railroad System  2.2.1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FCFSupport::PDFFileStructures::Type1FontDictionary Class Reference

Type 1 Font dictionary. More...

#include <PDFPrinterSupport.h>

Inheritance diagram for FCFSupport::PDFFileStructures::Type1FontDictionary:
FCFSupport::PDFFileStructures::FontDictionary FCFSupport::PDFFileStructures::TypedDictionary FCFSupport::PDFFileStructures::Dictionary FCFSupport::PDFFileStructures::IndirectObject FCFSupport::PDFFileStructures::PostScriptStandardType1FontDictionary

Public Member Functions

 Type1FontDictionary (const string basefont, int firstchar, int lastchar, IndirectFloatVector *widths_, TypedDictionary *fontdescriptor, const string encoding="", unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 Type1FontDictionary (const string basefont, int firstchar, int lastchar, IndirectFloatVector *widths_, TypedDictionary *fontdescriptor, TypedDictionary *encoding, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~Type1FontDictionary ()
 Destructor. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::FontDictionary
 FontDictionary (const string subtype, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~FontDictionary ()
 Destructor. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::TypedDictionary
 TypedDictionary (string t, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~TypedDictionary ()
 Destructor. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::Dictionary
 Dictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
virtual ~Dictionary ()
 Destructor. More...
 
virtual ostream & WriteDirect (ostream &stream) const
 Write an object directly. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::IndirectObject
 IndirectObject (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
virtual ~IndirectObject ()
 Destructor. More...
 
ostream & WriteObjectToFile (ostream &stream)
 Write an object indirectly. More...
 
ostream & WriteIndirectReference (ostream &stream) const
 Write an object indirectly. More...
 
unsigned long int ObjectNumber () const
 Return this object's object number. More...
 
unsigned short int GenerationNumber () const
 Return this object's generation number. More...
 
streampos FileOffset () const
 Return this object's file offset. More...
 
bool HasOffset () const
 Does the object have a file offset? More...
 

Protected Member Functions

virtual ostream & WriteDictionaryElements (ostream &stream) const
 Write an object directly. More...
 
- Protected Member Functions inherited from FCFSupport::PDFFileStructures::FontDictionary
ostream & WriteFontType (ostream &stream) const
 Write the font's subtype. More...
 
- Protected Member Functions inherited from FCFSupport::PDFFileStructures::TypedDictionary
ostream & WriteDictionaryType (ostream &stream) const
 Write the dictionary's type. More...
 

Private Attributes

string baseFont
 Base font name. More...
 
int firstChar
 First character in widths array;. More...
 
int lastChar
 Last character in widths array. More...
 
IndirectFloatVectorwidths
 Widths array. More...
 
TypedDictionaryfontDescriptor
 Font Descriptor. More...
 
string encodingName
 Encoding as a name. More...
 
TypedDictionaryencodingDictionary
 Encoding as a dictionary. More...
 

Detailed Description

Type 1 Font dictionary.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ Type1FontDictionary() [1/2]

FCFSupport::PDFFileStructures::Type1FontDictionary::Type1FontDictionary ( const string  basefont,
int  firstchar,
int  lastchar,
IndirectFloatVector widths_,
TypedDictionary fontdescriptor,
const string  encoding = "",
unsigned long int  objNum = 0L,
unsigned short int  genNum = 0,
CrossReferenceTable tab = NULL 
)
inline

Constructor.

Build a Type 1 font.

Parameters
basefontName of the base font.
firstcharThe first character code.
lastcharThe last character code.
widths_The widths of the characters.
fontdescriptorThe font description.
encodingThe encoding of the font.
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

◆ Type1FontDictionary() [2/2]

FCFSupport::PDFFileStructures::Type1FontDictionary::Type1FontDictionary ( const string  basefont,
int  firstchar,
int  lastchar,
IndirectFloatVector widths_,
TypedDictionary fontdescriptor,
TypedDictionary encoding,
unsigned long int  objNum = 0L,
unsigned short int  genNum = 0,
CrossReferenceTable tab = NULL 
)
inline

Constructor.

Build a Type 1 font.

Parameters
basefontName of the base font.
firstcharThe first character code.
lastcharThe last character code.
widths_The widths of the characters.
fontdescriptorThe font description.
encodingThe encoding of the font.
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

◆ ~Type1FontDictionary()

FCFSupport::PDFFileStructures::Type1FontDictionary::~Type1FontDictionary ( )
inline

Destructor.

References lcc::stream.

Member Function Documentation

◆ WriteDictionaryElements()

virtual ostream& FCFSupport::PDFFileStructures::Type1FontDictionary::WriteDictionaryElements ( ostream &  stream) const
protectedvirtual

Write an object directly.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::FontDictionary.

Member Data Documentation

◆ baseFont

string FCFSupport::PDFFileStructures::Type1FontDictionary::baseFont
private

Base font name.

◆ encodingDictionary

TypedDictionary* FCFSupport::PDFFileStructures::Type1FontDictionary::encodingDictionary
private

Encoding as a dictionary.

◆ encodingName

string FCFSupport::PDFFileStructures::Type1FontDictionary::encodingName
private

Encoding as a name.

◆ firstChar

int FCFSupport::PDFFileStructures::Type1FontDictionary::firstChar
private

First character in widths array;.

◆ fontDescriptor

TypedDictionary* FCFSupport::PDFFileStructures::Type1FontDictionary::fontDescriptor
private

Font Descriptor.

◆ lastChar

int FCFSupport::PDFFileStructures::Type1FontDictionary::lastChar
private

Last character in widths array.

◆ widths

IndirectFloatVector* FCFSupport::PDFFileStructures::Type1FontDictionary::widths
private

Widths array.