Commit c5c513b5 authored by Albert Astals Cid's avatar Albert Astals Cid

xpdf303: GfxFontLoc

parent 4ec5e5e6
......@@ -96,6 +96,41 @@ struct GfxFontCIDWidths {
int nExcepsV; // number of valid entries in excepsV
};
//------------------------------------------------------------------------
// GfxFontLoc
//------------------------------------------------------------------------
enum GfxFontLocType {
gfxFontLocEmbedded, // font embedded in PDF file
gfxFontLocExternal, // external font file
gfxFontLocResident // font resident in PS printer
};
class GfxFontLoc {
public:
GfxFontLoc();
~GfxFontLoc();
GfxFontLocType locType;
GfxFontType fontType;
Ref embFontID; // embedded stream obj ID
// (if locType == gfxFontLocEmbedded)
GooString *path; // font file path
// (if locType == gfxFontLocExternal)
// PS font name
// (if locType == gfxFontLocResident)
int fontNum; // for TrueType collections
// (if locType == gfxFontLocExternal)
GooString *encoding; // PS font encoding, only for 16-bit fonts
// (if locType == gfxFontLocResident)
int wMode; // writing mode, only for 16-bit fonts
// (if locType == gfxFontLocResident)
int substIdx; // substitute font index
// (if locType == gfxFontLocExternal,
// and a Base-14 substitution was made)
};
//------------------------------------------------------------------------
// GfxFont
//------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment