2005-08-26 18:18:29 +00:00
|
|
|
// -*- C++ -*-
|
2000-02-29 11:27:53 +00:00
|
|
|
|
2000-05-23 00:20:27 +00:00
|
|
|
#ifndef _GLYPH_H
|
|
|
|
#define _GLYPH_H
|
|
|
|
|
2003-04-01 11:09:15 +00:00
|
|
|
#include <qcolor.h>
|
2003-03-07 11:54:35 +00:00
|
|
|
#include <qpixmap.h>
|
2000-02-29 11:27:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct bitmap {
|
2003-03-07 11:54:35 +00:00
|
|
|
Q_UINT16 w, h; /* width and height in pixels */
|
|
|
|
Q_UINT16 bytes_wide; /* scan-line width in bytes */
|
2000-02-29 11:27:53 +00:00
|
|
|
char *bits; /* pointer to the bits */
|
|
|
|
};
|
|
|
|
|
|
|
|
class glyph {
|
|
|
|
public:
|
2001-03-02 21:02:45 +00:00
|
|
|
glyph();
|
2000-02-29 11:27:53 +00:00
|
|
|
~glyph();
|
|
|
|
|
2003-03-14 17:09:06 +00:00
|
|
|
// address of bitmap in font file
|
2003-04-01 11:09:15 +00:00
|
|
|
long addr;
|
|
|
|
|
|
|
|
QColor color;
|
2003-03-14 17:09:06 +00:00
|
|
|
|
|
|
|
// DVI units to move reference point
|
|
|
|
Q_INT32 dvi_advance_in_units_of_design_size_by_2e20;
|
|
|
|
|
|
|
|
// x and y offset in pixels
|
|
|
|
short x, y;
|
2003-03-07 11:54:35 +00:00
|
|
|
|
|
|
|
QPixmap shrunkenCharacter;
|
2003-03-14 17:09:06 +00:00
|
|
|
|
|
|
|
short x2, y2; /* x and y offset in pixels (shrunken bitmap) */
|
2000-02-29 11:27:53 +00:00
|
|
|
};
|
2000-05-23 00:20:27 +00:00
|
|
|
|
|
|
|
#endif //ifndef _GLYPH_H
|