diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kdvi/glyph.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/glyph.h')
-rw-r--r-- | kdvi/glyph.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kdvi/glyph.h b/kdvi/glyph.h new file mode 100644 index 00000000..1cc41823 --- /dev/null +++ b/kdvi/glyph.h @@ -0,0 +1,37 @@ +// -*- 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 |