summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/xpdf/BuiltinFont.h
authorsandman <sandman>2002-04-13 00:47:20 (UTC)
committer sandman <sandman>2002-04-13 00:47:20 (UTC)
commit98a1e3f36567639344f12932b629e526a8783aa8 (patch) (unidiff)
tree0433d296857faceeafc54f7deabddb621f45a933 /noncore/unsupported/qpdf/xpdf/BuiltinFont.h
parent7e31b1fba119f69929d6744d7295555ff1727f4f (diff)
downloadopie-98a1e3f36567639344f12932b629e526a8783aa8.zip
opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.gz
opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.bz2
CVS import of QPdf
Diffstat (limited to 'noncore/unsupported/qpdf/xpdf/BuiltinFont.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/xpdf/BuiltinFont.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/xpdf/BuiltinFont.h b/noncore/unsupported/qpdf/xpdf/BuiltinFont.h
new file mode 100644
index 0000000..b4fa24c
--- a/dev/null
+++ b/noncore/unsupported/qpdf/xpdf/BuiltinFont.h
@@ -0,0 +1,55 @@
1//========================================================================
2//
3// BuiltinFont.h
4//
5// Copyright 2001 Derek B. Noonburg
6//
7//========================================================================
8
9#ifndef BUILTINFONT_H
10#define BUILTINFONT_H
11
12#ifdef __GNUC__
13#pragma interface
14#endif
15
16#include "gtypes.h"
17
18struct BuiltinFont;
19class BuiltinFontWidths;
20
21//------------------------------------------------------------------------
22
23struct BuiltinFont {
24 char *name;
25 char **defaultBaseEnc;
26 short ascent;
27 short descent;
28 short bbox[4];
29 BuiltinFontWidths *widths;
30};
31
32//------------------------------------------------------------------------
33
34struct BuiltinFontWidth {
35 char *name;
36 Gushort width;
37 BuiltinFontWidth *next;
38};
39
40class BuiltinFontWidths {
41public:
42
43 BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA);
44 ~BuiltinFontWidths();
45 GBool getWidth(char *name, Gushort *width);
46
47private:
48
49 int hash(char *name);
50
51 BuiltinFontWidth **tab;
52 int size;
53};
54
55#endif