QFontDatabase Class Reference

#include <qfontdatabase.h>

Class Description

Definition at line 66 of file qfontdatabase.h.

Public Types

enum  WritingSystem {
  Any, Latin, Greek, Cyrillic,
  Armenian, Hebrew, Arabic, Syriac,
  Thaana, Devanagari, Bengali, Gurmukhi,
  Gujarati, Oriya, Tamil, Telugu,
  Kannada, Malayalam, Sinhala, Thai,
  Lao, Tibetan, Myanmar, Georgian,
  Khmer, SimplifiedChinese, TraditionalChinese, Japanese,
  Korean, Vietnamese, Symbol, Other = Symbol,
  Ogham, Runic, Nko, WritingSystemsCount
}
 

Public Member Functions

 QFontDatabase ()
 
QList< WritingSystemwritingSystems () const
 
QList< WritingSystemwritingSystems (const QString &family) const
 
QStringList families (WritingSystem writingSystem=Any) const
 
QStringList styles (const QString &family) const
 
QList< intpointSizes (const QString &family, const QString &style=QString())
 
QList< intsmoothSizes (const QString &family, const QString &style)
 
QString styleString (const QFont &font)
 
QString styleString (const QFontInfo &fontInfo)
 
QFont font (const QString &family, const QString &style, int pointSize) const
 
bool isBitmapScalable (const QString &family, const QString &style=QString()) const
 
bool isSmoothlyScalable (const QString &family, const QString &style=QString()) const
 
bool isScalable (const QString &family, const QString &style=QString()) const
 
bool isFixedPitch (const QString &family, const QString &style=QString()) const
 
bool italic (const QString &family, const QString &style) const
 
bool bold (const QString &family, const QString &style) const
 
int weight (const QString &family, const QString &style) const
 
bool hasFamily (const QString &family) const
 

Static Public Member Functions

static QList< intstandardSizes ()
 
static QString writingSystemName (WritingSystem writingSystem)
 
static QString writingSystemSample (WritingSystem writingSystem)
 
static int addApplicationFont (const QString &fileName)
 
static int addApplicationFontFromData (const QByteArray &fontData)
 
static QStringList applicationFontFamilies (int id)
 
static bool removeApplicationFont (int id)
 
static bool removeAllApplicationFonts ()
 
static bool supportsThreadedFontRendering ()
 

Friends

struct QFontDef
 
class QFontPrivate
 
class QFontDialog
 
class QFontDialogPrivate
 
class QFontEngineMultiXLFD
 
class QFontEngineMultiQWS
 
class QFontEngineMultiS60
 
class QFontEngineMultiQPA
 

Member Enumeration Documentation

Enumerator
Any 
Latin 
Greek 
Cyrillic 
Armenian 
Hebrew 
Arabic 
Syriac 
Thaana 
Devanagari 
Bengali 
Gurmukhi 
Gujarati 
Oriya 
Tamil 
Telugu 
Kannada 
Malayalam 
Sinhala 
Thai 
Lao 
Tibetan 
Myanmar 
Georgian 
Khmer 
SimplifiedChinese 
TraditionalChinese 
Japanese 
Korean 
Vietnamese 
Symbol 
Other 
Ogham 
Runic 
Nko 
WritingSystemsCount 

Definition at line 73 of file qfontdatabase.h.

73  {
74  Any,
75 
76  Latin,
77  Greek,
78  Cyrillic,
79  Armenian,
80  Hebrew,
81  Arabic,
82  Syriac,
83  Thaana,
84  Devanagari,
85  Bengali,
86  Gurmukhi,
87  Gujarati,
88  Oriya,
89  Tamil,
90  Telugu,
91  Kannada,
92  Malayalam,
93  Sinhala,
94  Thai,
95  Lao,
96  Tibetan,
97  Myanmar,
98  Georgian,
99  Khmer,
102  Japanese,
103  Korean,
104  Vietnamese,
105 
106  Symbol,
107  Other = Symbol,
108 
109  Ogham,
110  Runic,
111  Nko,
112 
114  };

Constructor & Destructor Documentation

Member Function Documentation

static QList<int> standardSizes ( )
static
QList<WritingSystem> writingSystems ( ) const
QList<WritingSystem> writingSystems ( const QString family) const
QStringList families ( WritingSystem  writingSystem = Any) const
QStringList styles ( const QString family) const
QList<int> pointSizes ( const QString family,
const QString style = QString() 
)
QList<int> smoothSizes ( const QString family,
const QString style 
)
QString styleString ( const QFont font)
QString styleString ( const QFontInfo fontInfo)
QFont font ( const QString family,
const QString style,
int  pointSize 
) const
bool isBitmapScalable ( const QString family,
const QString style = QString() 
) const
bool isSmoothlyScalable ( const QString family,
const QString style = QString() 
) const
bool isScalable ( const QString family,
const QString style = QString() 
) const
bool isFixedPitch ( const QString family,
const QString style = QString() 
) const
bool italic ( const QString family,
const QString style 
) const
bool bold ( const QString family,
const QString style 
) const
int weight ( const QString family,
const QString style 
) const
bool hasFamily ( const QString family) const
static QString writingSystemName ( WritingSystem  writingSystem)
static
static QString writingSystemSample ( WritingSystem  writingSystem)
static
static int addApplicationFont ( const QString fileName)
static
static int addApplicationFontFromData ( const QByteArray fontData)
static
static QStringList applicationFontFamilies ( int  id)
static
static bool removeApplicationFont ( int  id)
static
static bool removeAllApplicationFonts ( )
static
static bool supportsThreadedFontRendering ( )
static

Friends And Related Function Documentation

friend struct QFontDef
friend

Definition at line 166 of file qfontdatabase.h.

friend class QFontPrivate
friend

Definition at line 167 of file qfontdatabase.h.

friend class QFontDialog
friend

Definition at line 168 of file qfontdatabase.h.

friend class QFontDialogPrivate
friend

Definition at line 169 of file qfontdatabase.h.

friend class QFontEngineMultiXLFD
friend

Definition at line 170 of file qfontdatabase.h.

friend class QFontEngineMultiQWS
friend

Definition at line 171 of file qfontdatabase.h.

friend class QFontEngineMultiS60
friend

Definition at line 172 of file qfontdatabase.h.

friend class QFontEngineMultiQPA
friend

Definition at line 173 of file qfontdatabase.h.


The documentation for this class was generated from the following file: