You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/kdvi/glyph.h

38 lines
650 B

// -*- C++ -*-
#ifndef _GLYPH_H
#define _GLYPH_H
#include <tqcolor.h>
#include <tqpixmap.h>
struct bitmap {
Q_UINT16 w, h; /* width and height in pixels */
Q_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
Q_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