~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/libs/xpdf/xpdf-3.02/xpdf/BuiltinFont.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// BuiltinFont.h
 
4
//
 
5
// Copyright 2001-2003 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef BUILTINFONT_H
 
10
#define BUILTINFONT_H
 
11
 
 
12
#include <aconf.h>
 
13
 
 
14
#ifdef USE_GCC_PRAGMAS
 
15
#pragma interface
 
16
#endif
 
17
 
 
18
#include "gtypes.h"
 
19
 
 
20
struct BuiltinFont;
 
21
class BuiltinFontWidths;
 
22
 
 
23
//------------------------------------------------------------------------
 
24
 
 
25
struct BuiltinFont {
 
26
  char *name;
 
27
  char **defaultBaseEnc;
 
28
  short ascent;
 
29
  short descent;
 
30
  short bbox[4];
 
31
  BuiltinFontWidths *widths;
 
32
};
 
33
 
 
34
//------------------------------------------------------------------------
 
35
 
 
36
struct BuiltinFontWidth {
 
37
  char *name;
 
38
  Gushort width;
 
39
  BuiltinFontWidth *next;
 
40
};
 
41
 
 
42
class BuiltinFontWidths {
 
43
public:
 
44
 
 
45
  BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA);
 
46
  ~BuiltinFontWidths();
 
47
  GBool getWidth(char *name, Gushort *width);
 
48
 
 
49
private:
 
50
 
 
51
  int hash(char *name);
 
52
 
 
53
  BuiltinFontWidth **tab;
 
54
  int size;
 
55
};
 
56
 
 
57
#endif