00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef FONTFACTORY_FT_H
00023 #define FONTFACTORY_FT_H
00024
00025 #include <qfontmanager_qws.h>
00026 #if QT_VERSION >= 0x030000
00027 # include <private/qfontdata_p.h>
00028 #else
00029 # include "qfontdata_p.h"
00030 #endif
00031
00032
00033 #ifdef QT_NO_FREETYPE
00034
00035 extern "C" {
00036
00037 #include <ft2build.h>
00038 #include FT_FREETYPE_H
00039
00040 #include <freetype/freetype.h>
00041 }
00042
00043
00044
00045
00046
00047 class QFontFactoryFT : public QFontFactory {
00048
00049 public:
00050
00051 QFontFactoryFT();
00052 virtual ~QFontFactoryFT();
00053
00054 QRenderedFont * get(const QFontDef &,QDiskFont *);
00055 virtual void load(QDiskFont *) const;
00056 virtual QString name();
00057
00058 private:
00059
00060 friend class QRenderedFontFT;
00061 FT_Library library;
00062 };
00063
00064 #endif // QT_NO_FREETYPE
00065
00066 #endif // QFONTFACTORY_FT_H
00067