fixed windows access violation which occurs if one tries to retrieve
[swftools.git] / pdf2swf / xpdf / BuiltinFont.h
bloba795311510a29498333ba04f277c80006ff32486
1 //========================================================================
2 //
3 // BuiltinFont.h
4 //
5 // Copyright 2001-2002 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef BUILTINFONT_H
10 #define BUILTINFONT_H
12 #ifdef __GNUC__
13 #pragma interface
14 #endif
16 #include "gtypes.h"
18 struct BuiltinFont;
19 class BuiltinFontWidths;
21 //------------------------------------------------------------------------
23 struct BuiltinFont {
24 char *name;
25 char **defaultBaseEnc;
26 short ascent;
27 short descent;
28 short bbox[4];
29 BuiltinFontWidths *widths;
32 //------------------------------------------------------------------------
34 struct BuiltinFontWidth {
35 char *name;
36 Gushort width;
37 BuiltinFontWidth *next;
40 class BuiltinFontWidths {
41 public:
43 BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA);
44 ~BuiltinFontWidths();
45 GBool getWidth(char *name, Gushort *width);
47 private:
49 int hash(char *name);
51 BuiltinFontWidth **tab;
52 int size;
55 #endif