mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-13 03:12:22 +00:00
0d4ef35d19
svn path=/trunk/kdegraphics/kdvi/; revision=217530
37 lines
631 B
C++
37 lines
631 B
C++
|
|
#ifndef _GLYPH_H
|
|
#define _GLYPH_H
|
|
|
|
#include <qcolor.h>
|
|
#include <qpixmap.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;
|
|
|
|
QColor 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;
|
|
|
|
QPixmap shrunkenCharacter;
|
|
|
|
short x2, y2; /* x and y offset in pixels (shrunken bitmap) */
|
|
};
|
|
|
|
#endif //ifndef _GLYPH_H
|