~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/xpdflib/builtinfont.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

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