Qtopia library API Documentation

FontDatabase Class Reference

The FontDatabase class provides information about available fonts. More...

#include <fontdatabase.h>

Inheritance diagram for FontDatabase:

Inheritance graph
[legend]
Collaboration diagram for FontDatabase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FontDatabase ()
QStringList families () const

Static Public Member Functions

void loadRenderers ()

Detailed Description

The FontDatabase class provides information about available fonts.

Most often you will simply want to query the database for the available font families().

Use FontDatabase rather than QFontDatabase when you may need access to fonts that are not normally available. For example, if the freetype library and the Qtopia freetype plugin are installed, TrueType fonts will be available to your application. Font renderer plugins have greater resource requirements than system fonts so they should be used only when necessary. You can force the loading of font renderer plugins with loadRenderers().

Definition at line 40 of file fontdatabase.h.


Constructor & Destructor Documentation

FontDatabase::FontDatabase  ) 
 

Constructs a FontDatabase object.

Definition at line 78 of file fontdatabase.cpp.


Member Function Documentation

QStringList FontDatabase::families  )  const
 

Returns a list of names of all the available font families.

Definition at line 90 of file fontdatabase.cpp.

References QDir::count(), QFontDatabase::families(), QDict::find(), and QDict::insert().

void FontDatabase::loadRenderers  )  [static]
 

Load any font renderer plugins that are available and make the fonts that the plugins can read available.

Definition at line 151 of file fontdatabase.cpp.

References QValueList< FontFactory >::append(), QValueList< FontFactory >::begin(), QValueList< FontFactory >::clear(), QValueList< FontFactory >::end(), QDir::entryList(), QDir::exists(), FontFactoryInterface::fontFactory(), QPEApplication::qpeDir(), and QLibrary::queryInterface().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:21 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001