| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 
 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QFontDatabase Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QFontDatabase Class Reference</h1><br clear="all">
<p>
Provides information about available fonts.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qfontdatabase-h.html">qfontdatabase.h</a>></code>
<p><a href="qfontdatabase-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#a5138b"><b>QFontDatabase</b></a>()</div>
<li><div class="fn">QStringList<a href="#4cec70"><b>families</b></a>(boolonlyForLocale=TRUE)const</div>
<li><div class="fn">QValueList<int><a href="#00d369"><b>pointSizes</b></a>(constQString&family, constQString&style=QString::null, constQString&charSet=QString::null)</div>
<li><div class="fn">QStringList<a href="#c45b15"><b>styles</b></a>(constQString&family, constQString&charSet=QString::null)const</div>
<li><div class="fn">QStringList<a href="#6c428e"><b>charSets</b></a>(constQString&familyName, boolonlyForLocale=TRUE)const</div>
<li><div class="fn">QFont<a href="#30ea99"><b>font</b></a>(constQStringfamilyName, constQString&style, intpointSize, constQStringcharSetName=QString::null)</div>
<li><div class="fn">bool<a href="#ae12c2"><b>isBitmapScalable</b></a>(constQString&family, constQString&style=QString::null, constQString&charSet=QString::null)const</div>
<li><div class="fn">bool<a href="#72207a"><b>isSmoothlyScalable</b></a>(constQString&family, constQString&style=QString::null, constQString&charSet=QString::null)const</div>
<li><div class="fn">bool<a href="#e01948"><b>isScalable</b></a>(constQString&family, constQString&style=QString::null, constQString&charSet=QString::null)const</div>
<li><div class="fn">bool<a href="#e03ae8"><b>isFixedPitch</b></a>(constQString&family, constQString&style=QString::null, constQString&charset=QString::null)const</div>
<li><div class="fn">QValueList<int><a href="#14e456"><b>smoothSizes</b></a>(constQString&family, constQString&style, constQString&charSet=QString::null)</div>
<li><div class="fn">bool<a href="#074127"><b>italic</b></a>(constQString&family, constQString&style, constQString&charSet=QString::null)const</div>
<li><div class="fn">bool<a href="#25a4e9"><b>bold</b></a>(constQString&family, constQString&style, constQString&charSet=QString::null)const</div>
<li><div class="fn">int<a href="#6005f9"><b>weight</b></a>(constQString&family, constQString&style, constQString&charSet=QString::null)const</div>
<li><div class="fn">QString<a href="#6a1e1f"><b>styleString</b></a>(constQFont&)</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">QValueList<int><a href="#dbeea8"><b>standardSizes</b></a>()</div>
<li><div class="fn">QString<a href="#f263a1"><b>verboseCharSetName</b></a>(constQString&charSetName)</div>
<li><div class="fn">QString<a href="#d20be2"><b>charSetSample</b></a>(constQString&charSetName)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Provides information about available fonts.
<p>
QFontDatabase provides information about the available fonts of the
underlying window system.
<p>Most often you will simply want to query the database for all font
<a href="#4cec70">families</a>(), and their respective <a href="#00d369">pointSizes</a>(), <a href="#c45b15">styles</a>() and
<a href="#6c428e">charSets</a>().
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="a5138b"></a>QFontDatabase::QFontDatabase()</h3>
<p>Creates a font database object.
<h3 class="fn">bool<a name="25a4e9"></a>QFontDatabase::bold(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns if the font which matches the settings <em>family, style</em> and
<em>charSet</em> is bold or not.
<p>See also  <a href="#074127">italic</a>() and <a href="#6005f9">weight</a>().
<h3 class="fn"><a href="qstring.html">QString</a><a name="d20be2"></a>QFontDatabase::charSetSample(const<a href="qstring.html">QString</a>&charSetName) <code>[static]</code></h3>
<p>Returns some sample characters which are in the charset <em>charSetName.</em>
<h3 class="fn"><a href="qstringlist.html">QStringList</a><a name="6c428e"></a>QFontDatabase::charSets(const<a href="qstring.html">QString</a>&family, boolonlyForLocale=TRUE)const</h3>
<p>Returns a list of all char sets in which the font <em>family</em> is available in the
current locale if <em>onlyForLocale</em> is TRUE, otherwise all charsets of <em>family</em>
independent of the locale are returned.
<h3 class="fn"><a href="qstringlist.html">QStringList</a><a name="4cec70"></a>QFontDatabase::families(boolonlyForLocale=TRUE)const</h3>
<p>Returns a list of names of all available font families in the current locale if
<em>onlyForLocale</em> is TRUE, otherwise really all available font families independent
of the current locale are returned.
<p>If a family exists in several foundries, the returned name will be "foundry-family".
<h3 class="fn"><a href="qfont.html">QFont</a><a name="30ea99"></a>QFontDatabase::font(const<a href="qstring.html">QString</a>family, const<a href="qstring.html">QString</a>&style, intpointSize, const<a href="qstring.html">QString</a>charSet=QString::null)</h3>
<p>Returns a <a href="qfont.html">QFont</a> object which matches the settings of <em>family, style, pointsize</em> and <em>charSet.</em> If no matching font could be created
an empty QFont object is returned.
<h3 class="fn">bool<a name="ae12c2"></a>QFontDatabase::isBitmapScalable(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style=QString::null, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns whether the font which matches <em>family, style</em> and <em>charSet</em> is
a scaleable bitmap font. Scaling a bitmap font produces a bad, often hardly
readable result, as the pixels of the font are scaled. It's better to scale such
a font only to the available fixed sizes (which you can get with <a href="#14e456">smoothSizes</a>()).
<p>See also  <a href="#e01948">isScalable</a>() and <a href="#72207a">isSmoothlyScalable</a>().
<h3 class="fn">bool<a name="e03ae8"></a>QFontDatabase::isFixedPitch(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style=QString::null, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns whether the font which matches <em>family, style</em> and <em>charSet</em> is
fixed pitch.
<h3 class="fn">bool<a name="e01948"></a>QFontDatabase::isScalable(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style=QString::null, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns TRUE if the font which matches the settings <em>family, style</em> and <em>charSet</em>
is scaleable.
<p>See also  <a href="#ae12c2">isBitmapScalable</a>() and <a href="#72207a">isSmoothlyScalable</a>().
<h3 class="fn">bool<a name="72207a"></a>QFontDatabase::isSmoothlyScalable(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style=QString::null, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns whether the font which matches <em>family, style</em> and <em>charSet</em> is
a smoothly scaleable. If this function returns TRUE, it's save to scale this font
to every size as the result will always look good.
<p>See also  <a href="#e01948">isScalable</a>() and <a href="#ae12c2">isBitmapScalable</a>().
<h3 class="fn">bool<a name="074127"></a>QFontDatabase::italic(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns if the font which matches the settings <em>family, style</em> and
<em>charSet</em> is italic or not.
<p>See also  <a href="#6005f9">weight</a>() and <a href="#25a4e9">bold</a>().
<h3 class="fn"><a href="qvaluelist.html">QValueList</a><int><a name="00d369"></a>QFontDatabase::pointSizes(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style=QString::null, const<a href="qstring.html">QString</a>&charSet=QString::null)</h3>
<p>Returns a list of all available sizes of the font <em>family</em> in the
style <em>style</em> and the char set <em>charSet.</em>
<p>See also  <a href="#14e456">smoothSizes</a>() and <a href="#dbeea8">standardSizes</a>().
<h3 class="fn"><a href="qvaluelist.html">QValueList</a><int><a name="14e456"></a>QFontDatabase::smoothSizes(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style, const<a href="qstring.html">QString</a>&charSet=QString::null)</h3>
<p>Returns the point sizes of a font which matches <em>family, style</em> and <em>charSet,</em>
that is guaranteed to look good. For non-scalable fonts and smoothly scalable fonts this function
is equivalent to <a href="#00d369">pointSizes</a>().
<p>See also  <a href="#00d369">pointSizes</a>() and <a href="#dbeea8">standardSizes</a>().
<h3 class="fn"><a href="qvaluelist.html">QValueList</a><int><a name="dbeea8"></a>QFontDatabase::standardSizes() <code>[static]</code></h3>
<p>Returns a list of standard fontsizes.
<p>See also  <a href="#14e456">smoothSizes</a>() and <a href="#00d369">pointSizes</a>().
<h3 class="fn"><a href="qstring.html">QString</a><a name="6a1e1f"></a>QFontDatabase::styleString(const<a href="qfont.html">QFont</a>&f)</h3>
<p>Returns a string with describes the style of the font <em>f.</em> This is Something like
"Bold Italic".
<h3 class="fn"><a href="qstringlist.html">QStringList</a><a name="c45b15"></a>QFontDatabase::styles(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Retruns all available styles of the font <em>family</em> in the
char set <em>charSet.</em>
<h3 class="fn"><a href="qstring.html">QString</a><a name="f263a1"></a>QFontDatabase::verboseCharSetName(const<a href="qstring.html">QString</a>&charSetName) <code>[static]</code></h3>
<p>Returns a string which gives a quite detailed description of the <em>charSetName</em>
which can be used e.g. for displaying in a dialog for the user.
<h3 class="fn">int<a name="6005f9"></a>QFontDatabase::weight(const<a href="qstring.html">QString</a>&family, const<a href="qstring.html">QString</a>&style, const<a href="qstring.html">QString</a>&charSet=QString::null)const</h3>
<p>Returns the weight of the font which matches the settings <em>family, style</em> and
<em>charSet.</em>
<p>See also  <a href="#074127">italic</a>() and <a href="#25a4e9">bold</a>().
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.1"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2000
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2000 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.1</div>
</table></div></address></body></html>
 |