source: trunk/doc/html/qfontdatabase.html@ 208

Last change on this file since 208 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 23.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qfontdatabase.cpp:1286 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QFontDatabase Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QFontDatabase Class Reference</h1>
33
34<p>The QFontDatabase class provides information about the fonts available in the underlying window system.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qfontdatabase-h.html">qfontdatabase.h</a>&gt;</tt>
37<p><a href="qfontdatabase-members.html">List of all member functions.</a>
38<h2>Public Members</h2>
39<ul>
40<li class=fn><a href="#QFontDatabase"><b>QFontDatabase</b></a> ()</li>
41<li class=fn>QStringList <a href="#families"><b>families</b></a> () const</li>
42<li class=fn>QStringList <a href="#families-2"><b>families</b></a> ( QFont::Script&nbsp;script ) const</li>
43<li class=fn>QStringList <a href="#styles"><b>styles</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family ) const</li>
44<li class=fn>QValueList&lt;int&gt; <a href="#pointSizes"><b>pointSizes</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style = QString::null )</li>
45<li class=fn>QValueList&lt;int&gt; <a href="#smoothSizes"><b>smoothSizes</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style )</li>
46<li class=fn>QString <a href="#styleString"><b>styleString</b></a> ( const&nbsp;QFont&nbsp;&amp;&nbsp;f )</li>
47<li class=fn>QFont <a href="#font"><b>font</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, int&nbsp;pointSize )</li>
48<li class=fn>bool <a href="#isBitmapScalable"><b>isBitmapScalable</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style = QString::null ) const</li>
49<li class=fn>bool <a href="#isSmoothlyScalable"><b>isSmoothlyScalable</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style = QString::null ) const</li>
50<li class=fn>bool <a href="#isScalable"><b>isScalable</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style = QString::null ) const</li>
51<li class=fn>bool <a href="#isFixedPitch"><b>isFixedPitch</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style = QString::null ) const</li>
52<li class=fn>bool <a href="#italic"><b>italic</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style ) const</li>
53<li class=fn>bool <a href="#bold"><b>bold</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style ) const</li>
54<li class=fn>int <a href="#weight"><b>weight</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style ) const</li>
55<li class=fn>QStringList families ( bool ) const &nbsp;<em>(obsolete)</em></li>
56<li class=fn>QStringList styles ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
57<li class=fn>QValueList&lt;int&gt; pointSizes ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) &nbsp;<em>(obsolete)</em></li>
58<li class=fn>QValueList&lt;int&gt; smoothSizes ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) &nbsp;<em>(obsolete)</em></li>
59<li class=fn>QFont font ( const&nbsp;QString&nbsp;&amp;&nbsp;familyName, const&nbsp;QString&nbsp;&amp;&nbsp;style, int&nbsp;pointSize, const QString &amp; ) &nbsp;<em>(obsolete)</em></li>
60<li class=fn>bool isBitmapScalable ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
61<li class=fn>bool isSmoothlyScalable ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
62<li class=fn>bool isScalable ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
63<li class=fn>bool isFixedPitch ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
64<li class=fn>bool italic ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
65<li class=fn>bool bold ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
66<li class=fn>int weight ( const&nbsp;QString&nbsp;&amp;&nbsp;family, const&nbsp;QString&nbsp;&amp;&nbsp;style, const QString &amp; ) const &nbsp;<em>(obsolete)</em></li>
67</ul>
68<h2>Static Public Members</h2>
69<ul>
70<li class=fn>QValueList&lt;int&gt; <a href="#standardSizes"><b>standardSizes</b></a> ()</li>
71<li class=fn>QString <a href="#scriptName"><b>scriptName</b></a> ( QFont::Script&nbsp;script )</li>
72<li class=fn>QString <a href="#scriptSample"><b>scriptSample</b></a> ( QFont::Script&nbsp;script )</li>
73</ul>
74<hr><a name="details"></a><h2>Detailed Description</h2>
75
76
77The QFontDatabase class provides information about the fonts available in the underlying window system.
78<p>
79
80<p> The most common uses of this class are to query the database for
81the list of font <a href="#families">families</a>() and for the <a href="#pointSizes">pointSizes</a>() and <a href="#styles">styles</a>()
82that are available for each family. An alternative to pointSizes()
83is <a href="#smoothSizes">smoothSizes</a>() which returns the sizes at which a given family
84and style will look attractive.
85<p> If the font family is available from two or more foundries the
86foundry name is included in the family name, e.g. "Helvetica
87[Adobe]" and "Helvetica [Cronyx]". When you specify a family you
88can either use the old hyphenated Qt 2.x "foundry-family" format,
89e.g. "Cronyx-Helvetica", or the new bracketed Qt 3.x "family
90[foundry]" format e.g. "Helvetica [Cronyx]". If the family has a
91foundry it is always returned, e.g. by families(), using the
92bracketed format.
93<p> The <a href="#font">font</a>() function returns a <a href="qfont.html">QFont</a> given a family, style and
94point size.
95<p> A family and style combination can be checked to see if it is
96<a href="#italic">italic</a>() or <a href="#bold">bold</a>(), and to retrieve its <a href="#weight">weight</a>(). Similarly we can
97call <a href="#isBitmapScalable">isBitmapScalable</a>(), <a href="#isSmoothlyScalable">isSmoothlyScalable</a>(), <a href="#isScalable">isScalable</a>() and
98<a href="#isFixedPitch">isFixedPitch</a>().
99<p> A text version of a style is given by <a href="#styleString">styleString</a>().
100<p> The QFontDatabase class also supports some static functions, for
101example, <a href="#standardSizes">standardSizes</a>(). You can retrieve the Unicode 3.0
102description of a <a href="qfont.html#Script-enum">script</a> using
103<a href="#scriptName">scriptName</a>(), and a sample of characters in a script with
104<a href="#scriptSample">scriptSample</a>().
105<p> Example:
106<pre>
107#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
108#include &lt;<a href="qfontdatabase-h.html">qfontdatabase.h</a>&gt;
109#include &lt;else.h&gt;
110
111int main( int argc, char **argv )
112{
113 <a href="qapplication.html">QApplication</a> app( argc, argv );
114 QFontDatabase fdb;
115 <a href="qstringlist.html">QStringList</a> families = fdb.<a href="#families">families</a>();
116 for ( QStringList::Iterator f = families.<a href="qvaluelist.html#begin">begin</a>(); f != families.<a href="qvaluelist.html#end">end</a>(); ++f ) {
117 <a href="qstring.html">QString</a> family = *f;
118 <a href="qapplication.html#qDebug">qDebug</a>( family );
119 <a href="qstringlist.html">QStringList</a> styles = fdb.<a href="#styles">styles</a>( family );
120 for ( QStringList::Iterator s = styles.<a href="qvaluelist.html#begin">begin</a>(); s != styles.<a href="qvaluelist.html#end">end</a>(); ++s ) {
121 <a href="qstring.html">QString</a> style = *s;
122 <a href="qstring.html">QString</a> dstyle = "\t" + style + " (";
123 <a href="qvaluelist.html">QValueList</a>&lt;int&gt; smoothies = fdb.<a href="#smoothSizes">smoothSizes</a>( family, style );
124 for ( QValueList&lt;int&gt;::Iterator points = smoothies.<a href="qvaluelist.html#begin">begin</a>();
125 points != smoothies.<a href="qvaluelist.html#end">end</a>(); ++points ) {
126 dstyle += QString::<a href="qstring.html#number">number</a>( *points ) + " ";
127 }
128 dstyle = dstyle.<a href="qstring.html#left">left</a>( dstyle.<a href="qstring.html#length">length</a>() - 1 ) + ")";
129 <a href="qapplication.html#qDebug">qDebug</a>( dstyle );
130 }
131 }
132 return 0;
133}
134</pre>
135
136This example gets the list of font families, then the list of
137styles for each family and the point sizes that are available for
138each family/style combination.
139<p>See also <a href="environment.html">Environment Classes</a> and <a href="graphics.html">Graphics Classes</a>.
140
141<hr><h2>Member Function Documentation</h2>
142<h3 class=fn><a name="QFontDatabase"></a>QFontDatabase::QFontDatabase ()
143</h3>
144Creates a font database object.
145
146<h3 class=fn>bool <a name="bold"></a>QFontDatabase::bold ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style ) const
147</h3>
148Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is bold; otherwise returns FALSE.
149<p> <p>See also <a href="#italic">italic</a>() and <a href="#weight">weight</a>().
150
151<h3 class=fn>bool <a name="bold-2"></a>QFontDatabase::bold ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
152</h3>
153<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
154<p>
155
156<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="families"></a>QFontDatabase::families () const
157</h3> Returns a sorted list of the names of the available font families.
158<p> If a family exists in several foundries, the returned name for
159that font is in the form "family [foundry]". Examples: "Times
160[Adobe]", "Times [Cronyx]", "Palatino".
161
162<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="families-2"></a>QFontDatabase::families ( <a href="qfont.html#Script-enum">QFont::Script</a>&nbsp;script ) const
163</h3>
164This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
165<p> Returns a sorted list of the available font families which support
166the Unicode script <em>script</em>.
167<p> If a family exists in several foundries, the returned name for
168that font is in the form "family [foundry]". Examples: "Times
169[Adobe]", "Times [Cronyx]", "Palatino".
170
171<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="families-3"></a>QFontDatabase::families ( bool ) const
172</h3>
173<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
174<p>
175
176<h3 class=fn><a href="qfont.html">QFont</a> <a name="font"></a>QFontDatabase::font ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, int&nbsp;pointSize )
177</h3>
178Returns a <a href="qfont.html">QFont</a> object that has family <em>family</em>, style <em>style</em>
179and point size <em>pointSize</em>. If no matching font could be created,
180a QFont object that uses the application's default font is
181returned.
182
183<h3 class=fn><a href="qfont.html">QFont</a> <a name="font-2"></a>QFontDatabase::font ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;familyName, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, int&nbsp;pointSize, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; )
184</h3>
185<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
186<p>
187
188<h3 class=fn>bool <a name="isBitmapScalable"></a>QFontDatabase::isBitmapScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style = QString::null ) const
189</h3>
190Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is a scalable bitmap font; otherwise returns FALSE. Scaling
191a bitmap font usually produces an unattractive hardly readable
192result, because the pixels of the font are scaled. If you need to
193scale a bitmap font it is better to scale it to one of the fixed
194sizes returned by <a href="#smoothSizes">smoothSizes</a>().
195<p> <p>See also <a href="#isScalable">isScalable</a>() and <a href="#isSmoothlyScalable">isSmoothlyScalable</a>().
196
197<h3 class=fn>bool <a name="isBitmapScalable-2"></a>QFontDatabase::isBitmapScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
198</h3>
199<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
200<p>
201
202<h3 class=fn>bool <a name="isFixedPitch"></a>QFontDatabase::isFixedPitch ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style = QString::null ) const
203</h3>
204Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is fixed pitch; otherwise returns FALSE.
205
206<h3 class=fn>bool <a name="isFixedPitch-2"></a>QFontDatabase::isFixedPitch ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
207</h3>
208<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
209<p>
210
211<h3 class=fn>bool <a name="isScalable"></a>QFontDatabase::isScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style = QString::null ) const
212</h3>
213Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is scalable; otherwise returns FALSE.
214<p> <p>See also <a href="#isBitmapScalable">isBitmapScalable</a>() and <a href="#isSmoothlyScalable">isSmoothlyScalable</a>().
215
216<h3 class=fn>bool <a name="isScalable-2"></a>QFontDatabase::isScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
217</h3>
218<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
219<p>
220
221<h3 class=fn>bool <a name="isSmoothlyScalable"></a>QFontDatabase::isSmoothlyScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style = QString::null ) const
222</h3>
223Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is smoothly scalable; otherwise returns FALSE. If this
224function returns TRUE, it's safe to scale this font to any size,
225and the result will always look attractive.
226<p> <p>See also <a href="#isScalable">isScalable</a>() and <a href="#isBitmapScalable">isBitmapScalable</a>().
227
228<h3 class=fn>bool <a name="isSmoothlyScalable-2"></a>QFontDatabase::isSmoothlyScalable ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
229</h3>
230<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
231<p>
232
233<h3 class=fn>bool <a name="italic"></a>QFontDatabase::italic ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style ) const
234</h3>
235Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is italic; otherwise returns FALSE.
236<p> <p>See also <a href="#weight">weight</a>() and <a href="#bold">bold</a>().
237
238<h3 class=fn>bool <a name="italic-2"></a>QFontDatabase::italic ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
239</h3>
240<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
241<p>
242
243<h3 class=fn><a href="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="pointSizes"></a>QFontDatabase::pointSizes ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style = QString::null )
244</h3>
245Returns a list of the point sizes available for the font that has
246family <em>family</em> and style <em>style</em>. The list may be empty.
247<p> <p>See also <a href="#smoothSizes">smoothSizes</a>() and <a href="#standardSizes">standardSizes</a>().
248
249<h3 class=fn><a href="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="pointSizes-2"></a>QFontDatabase::pointSizes ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; )
250</h3>
251<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
252<p>
253
254<h3 class=fn><a href="qstring.html">QString</a> <a name="scriptName"></a>QFontDatabase::scriptName ( <a href="qfont.html#Script-enum">QFont::Script</a>&nbsp;script )<tt> [static]</tt>
255</h3>
256Returns a string that gives a default description of the <em>script</em>
257(e.g. for displaying to the user in a dialog). The name matches
258the name of the script as defined by the Unicode 3.0 standard.
259<p> <p>See also <a href="qfont.html#Script-enum">QFont::Script</a>.
260
261<h3 class=fn><a href="qstring.html">QString</a> <a name="scriptSample"></a>QFontDatabase::scriptSample ( <a href="qfont.html#Script-enum">QFont::Script</a>&nbsp;script )<tt> [static]</tt>
262</h3>
263Returns a string with sample characters from <em>script</em>.
264<p> <p>See also <a href="qfont.html#Script-enum">QFont::Script</a>.
265
266<h3 class=fn><a href="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="smoothSizes"></a>QFontDatabase::smoothSizes ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style )
267</h3>
268Returns the point sizes of a font that has family <em>family</em> and
269style <em>style</em> that will look attractive. The list may be empty.
270For non-scalable fonts and bitmap scalable fonts, this function
271is equivalent to <a href="#pointSizes">pointSizes</a>().
272<p> <p>See also <a href="#pointSizes">pointSizes</a>() and <a href="#standardSizes">standardSizes</a>().
273
274<h3 class=fn><a href="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="smoothSizes-2"></a>QFontDatabase::smoothSizes ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; )
275</h3>
276<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
277<p>
278
279<h3 class=fn><a href="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="standardSizes"></a>QFontDatabase::standardSizes ()<tt> [static]</tt>
280</h3>
281Returns a list of standard font sizes.
282<p> <p>See also <a href="#smoothSizes">smoothSizes</a>() and <a href="#pointSizes">pointSizes</a>().
283
284<h3 class=fn><a href="qstring.html">QString</a> <a name="styleString"></a>QFontDatabase::styleString ( const&nbsp;<a href="qfont.html">QFont</a>&nbsp;&amp;&nbsp;f )
285</h3>
286Returns a string that describes the style of the font <em>f</em>. For
287example, "Bold Italic", "Bold", "Italic" or "Normal". An empty
288string may be returned.
289
290<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="styles"></a>QFontDatabase::styles ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family ) const
291</h3>
292Returns a list of the styles available for the font family <em>family</em>. Some example styles: "Light", "Light Italic", "Bold",
293"Oblique", "Demi". The list may be empty.
294
295<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="styles-2"></a>QFontDatabase::styles ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
296</h3>
297<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
298<p>
299
300<h3 class=fn>int <a name="weight"></a>QFontDatabase::weight ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style ) const
301</h3>
302Returns the weight of the font that has family <em>family</em> and style
303<em>style</em>. If there is no such family and style combination,
304returns -1.
305<p> <p>See also <a href="#italic">italic</a>() and <a href="#bold">bold</a>().
306
307<h3 class=fn>int <a name="weight-2"></a>QFontDatabase::weight ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp; ) const
308</h3>
309<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
310<p>
311
312<!-- eof -->
313<hr><p>
314This file is part of the <a href="index.html">Qt toolkit</a>.
315Copyright &copy; 1995-2007
316<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
317<table width=100% cellspacing=0 border=0><tr>
318<td>Copyright &copy; 2007
319<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
320<td align=right><div align=right>Qt 3.3.8</div>
321</table></div></address></body>
322</html>
Note: See TracBrowser for help on using the repository browser.