-rw-r--r-- | freetype/fontfactoryttf_qws.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/freetype/fontfactoryttf_qws.h b/freetype/fontfactoryttf_qws.h new file mode 100644 index 0000000..82b7e49 --- a/dev/null +++ b/freetype/fontfactoryttf_qws.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | |||
22 | #ifndef FONTFACTORY_FT_H | ||
23 | #define FONTFACTORY_FT_H | ||
24 | |||
25 | #include <qfontmanager_qws.h> | ||
26 | #if QT_VERSION >= 300 | ||
27 | # include <private/qfontdata_p.h> | ||
28 | #else | ||
29 | # include "qfontdata_p.h" | ||
30 | #endif | ||
31 | |||
32 | |||
33 | #ifdef QT_NO_FREETYPE | ||
34 | |||
35 | extern "C" { | ||
36 | #include <ft2build.h> | ||
37 | #include FT_FREETYPE_H | ||
38 | } | ||
39 | |||
40 | // ascent, descent, width(ch), width(string), maxwidth? | ||
41 | // leftbearing, rightbearing, minleftbearing,minrightbearing | ||
42 | // leading | ||
43 | |||
44 | class QFontFactoryFT : public QFontFactory { | ||
45 | |||
46 | public: | ||
47 | |||
48 | QFontFactoryFT(); | ||
49 | virtual ~QFontFactoryFT(); | ||
50 | |||
51 | QRenderedFont * get(const QFontDef &,QDiskFont *); | ||
52 | virtual void load(QDiskFont *) const; | ||
53 | virtual QString name(); | ||
54 | |||
55 | private: | ||
56 | |||
57 | friend class QRenderedFontFT; | ||
58 | FT_Library library; | ||
59 | }; | ||
60 | |||
61 | #endif // QT_NO_FREETYPE | ||
62 | |||
63 | #endif // QFONTFACTORY_FT_H | ||
64 | |||