i hope the node casts are correct here.
[AROS-Contrib.git] / arospdf / xpdf / BuiltinFont.h
blob86e9a93a11d590979ab3c990492475a273eba5e0
1 //========================================================================
2 //
3 // BuiltinFont.h
4 //
5 // Copyright 2001-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef BUILTINFONT_H
10 #define BUILTINFONT_H
12 #include <aconf.h>
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
18 #include "gtypes.h"
20 struct BuiltinFont;
21 class BuiltinFontWidths;
23 //------------------------------------------------------------------------
25 struct BuiltinFont {
26 const char *name;
27 char **defaultBaseEnc;
28 short ascent;
29 short descent;
30 short bbox[4];
31 BuiltinFontWidths *widths;
34 //------------------------------------------------------------------------
36 struct BuiltinFontWidth {
37 const char *name;
38 Gushort width;
39 BuiltinFontWidth *next;
42 class BuiltinFontWidths {
43 public:
45 BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA);
46 ~BuiltinFontWidths();
47 GBool getWidth(char *name, Gushort *width);
49 private:
51 int hash(char *name);
53 BuiltinFontWidth **tab;
54 int size;
57 #endif