diff options
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.21.0/poppler/BuiltinFont.h')
-rw-r--r-- | Build/source/libs/poppler/poppler-0.21.0/poppler/BuiltinFont.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.21.0/poppler/BuiltinFont.h b/Build/source/libs/poppler/poppler-0.21.0/poppler/BuiltinFont.h new file mode 100644 index 00000000000..bbdd0558e9f --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.21.0/poppler/BuiltinFont.h @@ -0,0 +1,55 @@ +//======================================================================== +// +// BuiltinFont.h +// +// Copyright 2001-2003 Glyph & Cog, LLC +// +//======================================================================== + +#ifndef BUILTINFONT_H +#define BUILTINFONT_H + +#ifdef USE_GCC_PRAGMAS +#pragma interface +#endif + +#include "goo/gtypes.h" + +struct BuiltinFont; +class BuiltinFontWidths; + +//------------------------------------------------------------------------ + +struct BuiltinFont { + const char *name; + const char **defaultBaseEnc; + short ascent; + short descent; + short bbox[4]; + BuiltinFontWidths *widths; +}; + +//------------------------------------------------------------------------ + +struct BuiltinFontWidth { + const char *name; + Gushort width; + BuiltinFontWidth *next; +}; + +class BuiltinFontWidths { +public: + + BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA); + ~BuiltinFontWidths(); + GBool getWidth(const char *name, Gushort *width); + +private: + + int hash(const char *name); + + BuiltinFontWidth **tab; + int size; +}; + +#endif |