author | ar <ar> | 2005-01-22 21:53:54 (UTC) |
---|---|---|
committer | ar <ar> | 2005-01-22 21:53:54 (UTC) |
commit | 687b18f07228aac2b168ea5e3204c1c3518929a7 (patch) (unidiff) | |
tree | 485b49ef6150e7aad4bde0a942c0b17d863b240c /freetype/fontfactoryttf_qws.cpp | |
parent | 6d08fa658ab487426eebe934fdd92cd3bbb925b3 (diff) | |
download | opie-687b18f07228aac2b168ea5e3204c1c3518929a7.zip opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.gz opie-687b18f07228aac2b168ea5e3204c1c3518929a7.tar.bz2 |
- build opie-freetype against freetype2
you must specified <prefix>/include/freetype2 in dependencies menu (make menuconfig)
Diffstat (limited to 'freetype/fontfactoryttf_qws.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | freetype/fontfactoryttf_qws.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freetype/fontfactoryttf_qws.cpp b/freetype/fontfactoryttf_qws.cpp index 1ed0d2c..6d41c33 100644 --- a/freetype/fontfactoryttf_qws.cpp +++ b/freetype/fontfactoryttf_qws.cpp | |||
@@ -26,24 +26,28 @@ using namespace Opie::Core; | |||
26 | #ifdef QT_NO_FREETYPE | 26 | #ifdef QT_NO_FREETYPE |
27 | 27 | ||
28 | #include "qfontdata_p.h" | 28 | #include "qfontdata_p.h" |
29 | #include <string.h> | 29 | #include <string.h> |
30 | #include <stdio.h> | 30 | #include <stdio.h> |
31 | 31 | ||
32 | #define FLOOR(x) ((x) & -64) | 32 | #define FLOOR(x) ((x) & -64) |
33 | #define CEIL(x) (((x)+63) & -64) | 33 | #define CEIL(x) (((x)+63) & -64) |
34 | #define TRUNC(x) ((x) >> 6) | 34 | #define TRUNC(x) ((x) >> 6) |
35 | 35 | ||
36 | 36 | ||
37 | extern "C" { | 37 | extern "C" { |
38 | |||
39 | #include <ft2build.h> | ||
40 | #include FT_FREETYPE_H | ||
41 | |||
38 | #include <freetype/freetype.h> | 42 | #include <freetype/freetype.h> |
39 | #include <freetype/ftglyph.h> | 43 | #include <freetype/ftglyph.h> |
40 | #include <freetype/ftoutln.h> | 44 | #include <freetype/ftoutln.h> |
41 | #include <freetype/ftbbox.h> | 45 | #include <freetype/ftbbox.h> |
42 | } | 46 | } |
43 | 47 | ||
44 | class QDiskFontFT : public QDiskFontPrivate { | 48 | class QDiskFontFT : public QDiskFontPrivate { |
45 | public: | 49 | public: |
46 | FT_Face face; | 50 | FT_Face face; |
47 | }; | 51 | }; |
48 | 52 | ||
49 | class QRenderedFontFT : public QRenderedFont { | 53 | class QRenderedFontFT : public QRenderedFont { |