Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GfxFont Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/GfxFont.h>

Inheritance diagram for GfxFont:

Inheritance graph
[legend]
Collaboration diagram for GfxFont:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GfxFont (char *tagA, Ref idA, GString *nameA)
virtual ~GfxFont ()
GBool isOk ()
GStringgetTag ()
RefgetID ()
GBool matches (char *tagA)
GStringgetName ()
GfxFontType getType ()
virtual GBool isCIDFont ()
GBool getEmbeddedFontID (Ref *embID)
GStringgetEmbeddedFontName ()
GStringgetExtFontFile ()
GBool isFixedWidth ()
GBool isSerif ()
GBool isSymbolic ()
GBool isItalic ()
GBool isBold ()
foublegetFontMatrix ()
foublegetFontBBox ()
fouble getAscent ()
fouble getDescent ()
virtual int getWMode ()
char * readExtFontFile (int *len)
char * readEmbFontFile (XRef *xref, int *len)
virtual int getNextChar (char *s, int len, CharCode *code, Unicode *u, int uSize, int *uLen, fouble *dx, fouble *dy, fouble *ox, fouble *oy)=0

Static Public Member Functions

static GfxFontmakeFont (XRef *xref, char *tagA, Ref idA, Dict *fontDict)

Protected Member Functions

void readFontDescriptor (XRef *xref, Dict *fontDict)
CharCodeToUnicodereadToUnicodeCMap (Dict *fontDict, int nBits)
void findExtFontFile ()

Protected Attributes

GStringtag
Ref id
GStringname
GfxFontType type
int flags
GStringembFontName
Ref embFontID
GStringextFontFile
fouble fontMat [6]
fouble fontBBox [4]
fouble missingWidth
fouble ascent
fouble descent
GBool ok

Constructor & Destructor Documentation

GfxFont::GfxFont char *  tagA,
Ref  idA,
GString nameA
 

Definition at line 125 of file GfxFont.cc.

References embFontName, extFontFile, gFalse, name, NULL, ok, and tag.

GfxFont::~GfxFont  )  [virtual]
 

Definition at line 134 of file GfxFont.cc.

References embFontName, extFontFile, name, and tag.


Member Function Documentation

void GfxFont::findExtFontFile  )  [protected]
 

Definition at line 298 of file GfxFont.cc.

References extFontFile, GlobalParams::findFontFile(), fontTrueType, fontType1, globalParams, name, NULL, and type.

Referenced by Gfx8BitFont::Gfx8BitFont(), and GfxCIDFont::GfxCIDFont().

fouble GfxFont::getAscent  )  [inline]
 

Definition at line 136 of file GfxFont.h.

References ascent.

Referenced by TextString::TextString().

fouble GfxFont::getDescent  )  [inline]
 

Definition at line 137 of file GfxFont.h.

References descent.

Referenced by TextString::TextString().

GBool GfxFont::getEmbeddedFontID Ref embID  )  [inline]
 

Definition at line 111 of file GfxFont.h.

References embFontID, and Ref::num.

GString* GfxFont::getEmbeddedFontName  )  [inline]
 

Definition at line 116 of file GfxFont.h.

References embFontName.

GString* GfxFont::getExtFontFile  )  [inline]
 

Definition at line 120 of file GfxFont.h.

References extFontFile.

fouble* GfxFont::getFontBBox  )  [inline]
 

Definition at line 133 of file GfxFont.h.

References fontBBox.

fouble* GfxFont::getFontMatrix  )  [inline]
 

Definition at line 130 of file GfxFont.h.

References fontMat.

Referenced by Gfx::doShowText(), and TextPage::updateFont().

Ref* GfxFont::getID  )  [inline]
 

Definition at line 97 of file GfxFont.h.

References id.

GString* GfxFont::getName void   )  [inline]
 

Definition at line 103 of file GfxFont.h.

References name.

Referenced by Gfx::opSetFont().

virtual int GfxFont::getNextChar char *  s,
int  len,
CharCode code,
Unicode *  u,
int  uSize,
int *  uLen,
fouble dx,
fouble dy,
fouble ox,
fouble oy
[pure virtual]
 

Implemented in Gfx8BitFont, and GfxCIDFont.

Referenced by Gfx::doShowText().

GString* GfxFont::getTag  )  [inline]
 

Definition at line 94 of file GfxFont.h.

References tag.

Referenced by Gfx::opSetFont().

GfxFontType GfxFont::getType  )  [inline]
 

Definition at line 106 of file GfxFont.h.

References type.

Referenced by Gfx::doShowText(), and TextPage::updateFont().

virtual int GfxFont::getWMode  )  [inline, virtual]
 

Reimplemented in GfxCIDFont.

Definition at line 140 of file GfxFont.h.

Referenced by Gfx::doShowText().

GBool GfxFont::isBold  )  [inline]
 

Definition at line 127 of file GfxFont.h.

References flags, and fontBold.

Referenced by Gfx8BitFont::Gfx8BitFont().

virtual GBool GfxFont::isCIDFont  )  [inline, virtual]
 

Reimplemented in GfxCIDFont.

Definition at line 107 of file GfxFont.h.

References gFalse.

GBool GfxFont::isFixedWidth  )  [inline]
 

Definition at line 123 of file GfxFont.h.

References flags, and fontFixedWidth.

Referenced by Gfx8BitFont::Gfx8BitFont().

GBool GfxFont::isItalic  )  [inline]
 

Definition at line 126 of file GfxFont.h.

References flags, and fontItalic.

Referenced by Gfx8BitFont::Gfx8BitFont().

GBool GfxFont::isOk  )  [inline]
 

Definition at line 91 of file GfxFont.h.

References ok.

GBool GfxFont::isSerif  )  [inline]
 

Definition at line 124 of file GfxFont.h.

References flags, and fontSerif.

Referenced by Gfx8BitFont::Gfx8BitFont().

GBool GfxFont::isSymbolic  )  [inline]
 

Definition at line 125 of file GfxFont.h.

References flags, and fontSymbolic.

GfxFont * GfxFont::makeFont XRef xref,
char *  tagA,
Ref  idA,
Dict fontDict
[static]
 

Definition at line 89 of file GfxFont.cc.

References error(), fontTrueType, fontType1, fontType1C, fontType3, fontUnknownType, Object::free(), Object::getName(), Object::isName(), Dict::lookup(), and NULL.

Referenced by GfxFontDict::GfxFontDict().

GBool GfxFont::matches char *  tagA  )  [inline]
 

Definition at line 100 of file GfxFont.h.

References GString::cmp(), and tag.

char * GfxFont::readEmbFontFile XRef xref,
int *  len
 

Definition at line 327 of file GfxFont.cc.

References buf, Stream::close(), embFontID, error(), Object::fetch(), Object::free(), Ref::gen, Stream::getChar(), Object::getStream(), grealloc(), i, Object::initRef(), Object::isStream(), NULL, Ref::num, Stream::reset(), size, and str.

Referenced by Gfx8BitFont::Gfx8BitFont().

char * GfxFont::readExtFontFile int *  len  ) 
 

Definition at line 308 of file GfxFont.cc.

References buf, error(), extFontFile, f, GString::getCString(), gmalloc(), and NULL.

Referenced by Gfx8BitFont::Gfx8BitFont().

void GfxFont::readFontDescriptor XRef xref,
Dict fontDict
[protected]
 

Definition at line 147 of file GfxFont.cc.

References Object::arrayGet(), Object::arrayGetLength(), ascent, descent, Object::dictLookup(), Object::dictLookupNF(), embFontID, embFontName, error(), Object::fetch(), flags, fontBBox, fontCIDType0, fontCIDType0C, fontCIDType2, fontSerif, fontTrueType, fontType1, fontType1C, Object::free(), Ref::gen, Object::getInt(), Object::getName(), Object::getNum(), Object::getRef(), i, Object::isName(), Object::isNum(), Dict::lookup(), missingWidth, Ref::num, Object::streamGetDict(), t, and type.

Referenced by Gfx8BitFont::Gfx8BitFont(), and GfxCIDFont::GfxCIDFont().

CharCodeToUnicode * GfxFont::readToUnicodeCMap Dict fontDict,
int  nBits
[protected]
 

Definition at line 276 of file GfxFont.cc.

References GString::append(), buf, Object::free(), NULL, CharCodeToUnicode::parseCMap(), Object::streamClose(), Object::streamGetChar(), and Object::streamReset().

Referenced by Gfx8BitFont::Gfx8BitFont(), and GfxCIDFont::GfxCIDFont().


Member Data Documentation

fouble GfxFont::ascent [protected]
 

Definition at line 173 of file GfxFont.h.

Referenced by getAscent(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), and readFontDescriptor().

fouble GfxFont::descent [protected]
 

Definition at line 174 of file GfxFont.h.

Referenced by getDescent(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), and readFontDescriptor().

Ref GfxFont::embFontID [protected]
 

Definition at line 168 of file GfxFont.h.

Referenced by getEmbeddedFontID(), Gfx8BitFont::Gfx8BitFont(), readEmbFontFile(), and readFontDescriptor().

GString* GfxFont::embFontName [protected]
 

Definition at line 167 of file GfxFont.h.

Referenced by getEmbeddedFontName(), Gfx8BitFont::Gfx8BitFont(), GfxFont(), readFontDescriptor(), and ~GfxFont().

GString* GfxFont::extFontFile [protected]
 

Definition at line 169 of file GfxFont.h.

Referenced by findExtFontFile(), getExtFontFile(), Gfx8BitFont::Gfx8BitFont(), GfxFont(), readExtFontFile(), and ~GfxFont().

int GfxFont::flags [protected]
 

Definition at line 166 of file GfxFont.h.

Referenced by Gfx8BitFont::Gfx8BitFont(), isBold(), isFixedWidth(), isItalic(), isSerif(), isSymbolic(), and readFontDescriptor().

fouble GfxFont::fontBBox[4] [protected]
 

Definition at line 171 of file GfxFont.h.

Referenced by getFontBBox(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), and readFontDescriptor().

fouble GfxFont::fontMat[6] [protected]
 

Definition at line 170 of file GfxFont.h.

Referenced by getFontMatrix(), and Gfx8BitFont::Gfx8BitFont().

Ref GfxFont::id [protected]
 

Definition at line 163 of file GfxFont.h.

Referenced by getID().

fouble GfxFont::missingWidth [protected]
 

Definition at line 172 of file GfxFont.h.

Referenced by Gfx8BitFont::Gfx8BitFont(), and readFontDescriptor().

GString* GfxFont::name [protected]
 

Definition at line 164 of file GfxFont.h.

Referenced by findExtFontFile(), getName(), Gfx8BitFont::Gfx8BitFont(), GfxFont(), and ~GfxFont().

GBool GfxFont::ok [protected]
 

Definition at line 175 of file GfxFont.h.

Referenced by Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), GfxFont(), and isOk().

GString* GfxFont::tag [protected]
 

Definition at line 162 of file GfxFont.h.

Referenced by getTag(), GfxFont(), matches(), and ~GfxFont().

GfxFontType GfxFont::type [protected]
 

Definition at line 165 of file GfxFont.h.

Referenced by findExtFontFile(), getType(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), and readFontDescriptor().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:33:54 2005 for OPIE by  doxygen 1.4.2