blob: f24cbf98f9f53ad8f877ac8573f83c4a69bfe4d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
//========================================================================
//
// BuiltinFont.h
//
// Copyright 2001-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef BUILTINFONT_H
#define BUILTINFONT_H
#include <aconf.h>
#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
#include "gtypes.h"
struct BuiltinFont;
class BuiltinFontWidths;
//------------------------------------------------------------------------
struct BuiltinFont {
const char *name;
const char **defaultBaseEnc;
short missingWidth;
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
|