summaryrefslogtreecommitdiffstats
path: root/kdvi/glyph.h
blob: 2265c6dfd6d7ec5f191cc8d89627512590fd9230 (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
// -*- C++ -*-

#ifndef _GLYPH_H
#define _GLYPH_H

#include <tqcolor.h>
#include <tqpixmap.h>


struct bitmap {
  TQ_UINT16	w, h;	/* width and height in pixels */
  TQ_UINT16	bytes_wide;	/* scan-line width in bytes */
  char		*bits;		/* pointer to the bits */
};

class glyph {
 public:
  glyph();
  ~glyph();

  // address of bitmap in font file
  long    addr;

  TQColor color;

  // DVI units to move reference point
  TQ_INT32 dvi_advance_in_units_of_design_size_by_2e20;

  // x and y offset in pixels 
  short   x, y;

  TQPixmap shrunkenCharacter;

  short   x2, y2;	/* x and y offset in pixels (shrunken bitmap) */
};

#endif //ifndef _GLYPH_H