.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QFontManager \- Implements font management in Qt/Embedded
.SH SYNOPSIS
\fC#include <qfontmanager_qws.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQFontManager\fR ()"
.br
.ti -1c
.BI "\fB~QFontManager\fR ()"
.br
.ti -1c
.BI "QDiskFont * \fBget\fR ( const QFontDef & f )"
.br
.in -1c
.SS "Static Public Members"
.in +1c
.ti -1c
.BI "void \fBinitialize\fR ()"
.br
.ti -1c
.BI "void \fBcleanup\fR ()"
.br
.in -1c
.SH DESCRIPTION
The QFontManager class implements font management in Qt/Embedded.
.PP
There is one and only one QFontManager per Qt/Embedded application. The \fCqt_fontmanager\fR global variable points to it. It keeps a list of font factories, a cache of rendered fonts and a list of fonts available on disk. QFontManager is called when a new font needs to be rendered from a Freetype-compatible or BDF font on disk; this only happens if there isn't an appropriate QPF font already available.
.PP
See also Qt/Embedded.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QFontManager::QFontManager ()"
Creates a font manager. This method reads in the font definition file from \fCINSTALL/lib/fonts/fontdir\fR, where \fCINSTALL\fR is the directory where Qt/Embedded was installed, and creates a list of QDiskFonts to hold the information in the file. It also constructs any defined font factories.
.SH "QFontManager::~QFontManager ()"
Destroys the QFontManager and sets \fCqt_fontmanager\fR to 0.