Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

fontfactoryttf_qws.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
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 // ascent, descent, width(ch), width(string), maxwidth?
00044 // leftbearing, rightbearing, minleftbearing,minrightbearing
00045 // leading
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 

Generated on Sat Nov 5 16:15:59 2005 for OPIE by  doxygen 1.4.2