summaryrefslogtreecommitdiffstats
path: root/doc/html/tqfontdatabase.html
blob: 8f1579ed43a6973ee7d737950c1974e0719de95f (plain)
1
2
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!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>TQFontDatabase Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
 <a href="index.html">
<font color="#004faf">Home</font></a>
 | <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
 | <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQFontDatabase Class Reference</h1>

<p>The TQFontDatabase class provides information about the fonts available in the underlying window system.
<a href="#details">More...</a>
<p><tt>#include &lt;<a href="tqfontdatabase-h.html">tqfontdatabase.h</a>&gt;</tt>
<p><a href="tqfontdatabase-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn><a href="#TQFontDatabase"><b>TQFontDatabase</b></a> ()</li>
<li class=fn>TQStringList <a href="#families"><b>families</b></a> () const</li>
<li class=fn>TQStringList <a href="#families-2"><b>families</b></a> ( TQFont::Script&nbsp;script ) const</li>
<li class=fn>TQStringList <a href="#styles"><b>styles</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family ) const</li>
<li class=fn>TQValueList&lt;int&gt; <a href="#pointSizes"><b>pointSizes</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style = TQString::null )</li>
<li class=fn>TQValueList&lt;int&gt; <a href="#smoothSizes"><b>smoothSizes</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style )</li>
<li class=fn>TQString <a href="#styleString"><b>styleString</b></a> ( const&nbsp;TQFont&nbsp;&amp;&nbsp;f )</li>
<li class=fn>TQFont <a href="#font"><b>font</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, int&nbsp;pointSize )</li>
<li class=fn>bool <a href="#isBitmapScalable"><b>isBitmapScalable</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style = TQString::null ) const</li>
<li class=fn>bool <a href="#isSmoothlyScalable"><b>isSmoothlyScalable</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style = TQString::null ) const</li>
<li class=fn>bool <a href="#isScalable"><b>isScalable</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style = TQString::null ) const</li>
<li class=fn>bool <a href="#isFixedPitch"><b>isFixedPitch</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style = TQString::null ) const</li>
<li class=fn>bool <a href="#italic"><b>italic</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style ) const</li>
<li class=fn>bool <a href="#bold"><b>bold</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style ) const</li>
<li class=fn>int <a href="#weight"><b>weight</b></a> ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style ) const</li>
<li class=fn>TQStringList families ( bool ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>TQStringList styles ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>TQValueList&lt;int&gt; pointSizes ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>TQValueList&lt;int&gt; smoothSizes ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>TQFont font ( const&nbsp;TQString&nbsp;&amp;&nbsp;familyName, const&nbsp;TQString&nbsp;&amp;&nbsp;style, int&nbsp;pointSize, const TQString &amp; ) &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool isBitmapScalable ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool isSmoothlyScalable ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool isScalable ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool isFixedPitch ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool italic ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>bool bold ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
<li class=fn>int weight ( const&nbsp;TQString&nbsp;&amp;&nbsp;family, const&nbsp;TQString&nbsp;&amp;&nbsp;style, const TQString &amp; ) const &nbsp;<em>(obsolete)</em></li>
</ul>
<h2>Static Public Members</h2>
<ul>
<li class=fn>TQValueList&lt;int&gt; <a href="#standardSizes"><b>standardSizes</b></a> ()</li>
<li class=fn>TQString <a href="#scriptName"><b>scriptName</b></a> ( TQFont::Script&nbsp;script )</li>
<li class=fn>TQString <a href="#scriptSample"><b>scriptSample</b></a> ( TQFont::Script&nbsp;script )</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>


The TQFontDatabase class provides information about the fonts available in the underlying window system.
<p> 

<p> The most common uses of this class are to query the database for
the list of font <a href="#families">families</a>() and for the <a href="#pointSizes">pointSizes</a>() and <a href="#styles">styles</a>()
that are available for each family. An alternative to pointSizes()
is <a href="#smoothSizes">smoothSizes</a>() which returns the sizes at which a given family
and style will look attractive.
<p> If the font family is available from two or more foundries the
foundry name is included in the family name, e.g. "Helvetica
[Adobe]" and "Helvetica [Cronyx]". When you specify a family you
can either use the old hyphenated TQt 2.x "foundry-family" format,
e.g. "Cronyx-Helvetica", or the new bracketed TQt 3.x "family
[foundry]" format e.g. "Helvetica [Cronyx]". If the family has a
foundry it is always returned, e.g. by families(), using the
bracketed format.
<p> The <a href="#font">font</a>() function returns a <a href="tqfont.html">TQFont</a> given a family, style and
point size.
<p> A family and style combination can be checked to see if it is
<a href="#italic">italic</a>() or <a href="#bold">bold</a>(), and to retrieve its <a href="#weight">weight</a>(). Similarly we can
call <a href="#isBitmapScalable">isBitmapScalable</a>(), <a href="#isSmoothlyScalable">isSmoothlyScalable</a>(), <a href="#isScalable">isScalable</a>() and
<a href="#isFixedPitch">isFixedPitch</a>().
<p> A text version of a style is given by <a href="#styleString">styleString</a>().
<p> The TQFontDatabase class also supports some static functions, for
example, <a href="#standardSizes">standardSizes</a>(). You can retrieve the Unicode 3.0
description of a <a href="tqfont.html#Script-enum">script</a> using
<a href="#scriptName">scriptName</a>(), and a sample of characters in a script with
<a href="#scriptSample">scriptSample</a>().
<p> Example:
<pre>
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqfontdatabase-h.html">tqfontdatabase.h</a>&gt;
#include &lt;else.h&gt;

int main( int argc, char **argv )
{
    <a href="tqapplication.html">TQApplication</a> app( argc, argv );
    TQFontDatabase fdb;
    <a href="tqstringlist.html">TQStringList</a> families = fdb.<a href="#families">families</a>();
    for ( TQStringList::Iterator f = families.<a href="tqvaluelist.html#begin">begin</a>(); f != families.<a href="tqvaluelist.html#end">end</a>(); ++f ) {
        <a href="tqstring.html">TQString</a> family = *f;
        <a href="tqapplication.html#qDebug">tqDebug</a>( family );
        <a href="tqstringlist.html">TQStringList</a> styles = fdb.<a href="#styles">styles</a>( family );
        for ( TQStringList::Iterator s = styles.<a href="tqvaluelist.html#begin">begin</a>(); s != styles.<a href="tqvaluelist.html#end">end</a>(); ++s ) {
            <a href="tqstring.html">TQString</a> style = *s;
            <a href="tqstring.html">TQString</a> dstyle = "\t" + style + " (";
            <a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; smoothies = fdb.<a href="#smoothSizes">smoothSizes</a>( family, style );
            for ( TQValueList&lt;int&gt;::Iterator points = smoothies.<a href="tqvaluelist.html#begin">begin</a>();
                  points != smoothies.<a href="tqvaluelist.html#end">end</a>(); ++points ) {
                dstyle += TQString::<a href="tqstring.html#number">number</a>( *points ) + " ";
            }
            dstyle = dstyle.<a href="tqstring.html#left">left</a>( dstyle.<a href="tqstring.html#length">length</a>() - 1 ) + ")";
            <a href="tqapplication.html#qDebug">tqDebug</a>( dstyle );
        }
    }
    return 0;
}
</pre>
 
This example gets the list of font families, then the list of
styles for each family and the point sizes that are available for
each family/style combination.
<p>See also <a href="environment.html">Environment Classes</a> and <a href="graphics.html">Graphics Classes</a>.

<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="TQFontDatabase"></a>TQFontDatabase::TQFontDatabase ()
</h3>
Creates a font database object.

<h3 class=fn>bool <a name="bold"></a>TQFontDatabase::bold ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is bold; otherwise returns FALSE.
<p> <p>See also <a href="#italic">italic</a>() and <a href="#weight">weight</a>().

<h3 class=fn>bool <a name="bold-2"></a>TQFontDatabase::bold ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn><a href="tqstringlist.html">TQStringList</a> <a name="families"></a>TQFontDatabase::families () const
</h3> Returns a sorted list of the names of the available font families.
<p> If a family exists in several foundries, the returned name for
that font is in the form "family [foundry]". Examples: "Times
[Adobe]", "Times [Cronyx]", "Palatino".

<h3 class=fn><a href="tqstringlist.html">TQStringList</a> <a name="families-2"></a>TQFontDatabase::families ( <a href="tqfont.html#Script-enum">TQFont::Script</a>&nbsp;script ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns a sorted list of the available font families which support
the Unicode script <em>script</em>.
<p> If a family exists in several foundries, the returned name for
that font is in the form "family [foundry]". Examples: "Times
[Adobe]", "Times [Cronyx]", "Palatino".

<h3 class=fn><a href="tqstringlist.html">TQStringList</a> <a name="families-3"></a>TQFontDatabase::families ( bool ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn><a href="tqfont.html">TQFont</a> <a name="font"></a>TQFontDatabase::font ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, int&nbsp;pointSize )
</h3>
Returns a <a href="tqfont.html">TQFont</a> object that has family <em>family</em>, style <em>style</em>
and point size <em>pointSize</em>. If no matching font could be created,
a TQFont object that uses the application's default font is
returned.

<h3 class=fn><a href="tqfont.html">TQFont</a> <a name="font-2"></a>TQFontDatabase::font ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;familyName, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, int&nbsp;pointSize, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; )
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>bool <a name="isBitmapScalable"></a>TQFontDatabase::isBitmapScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style = TQString::null ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is a scalable bitmap font; otherwise returns FALSE. Scaling
a bitmap font usually produces an unattractive hardly readable
result, because the pixels of the font are scaled. If you need to
scale a bitmap font it is better to scale it to one of the fixed
sizes returned by <a href="#smoothSizes">smoothSizes</a>().
<p> <p>See also <a href="#isScalable">isScalable</a>() and <a href="#isSmoothlyScalable">isSmoothlyScalable</a>().

<h3 class=fn>bool <a name="isBitmapScalable-2"></a>TQFontDatabase::isBitmapScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>bool <a name="isFixedPitch"></a>TQFontDatabase::isFixedPitch ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style = TQString::null ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is fixed pitch; otherwise returns FALSE.

<h3 class=fn>bool <a name="isFixedPitch-2"></a>TQFontDatabase::isFixedPitch ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>bool <a name="isScalable"></a>TQFontDatabase::isScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style = TQString::null ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is scalable; otherwise returns FALSE.
<p> <p>See also <a href="#isBitmapScalable">isBitmapScalable</a>() and <a href="#isSmoothlyScalable">isSmoothlyScalable</a>().

<h3 class=fn>bool <a name="isScalable-2"></a>TQFontDatabase::isScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>bool <a name="isSmoothlyScalable"></a>TQFontDatabase::isSmoothlyScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style = TQString::null ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is smoothly scalable; otherwise returns FALSE. If this
function returns TRUE, it's safe to scale this font to any size,
and the result will always look attractive.
<p> <p>See also <a href="#isScalable">isScalable</a>() and <a href="#isBitmapScalable">isBitmapScalable</a>().

<h3 class=fn>bool <a name="isSmoothlyScalable-2"></a>TQFontDatabase::isSmoothlyScalable ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>bool <a name="italic"></a>TQFontDatabase::italic ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style ) const
</h3>
Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is italic; otherwise returns FALSE.
<p> <p>See also <a href="#weight">weight</a>() and <a href="#bold">bold</a>().

<h3 class=fn>bool <a name="italic-2"></a>TQFontDatabase::italic ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn><a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; <a name="pointSizes"></a>TQFontDatabase::pointSizes ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style = TQString::null )
</h3>
Returns a list of the point sizes available for the font that has
family <em>family</em> and style <em>style</em>. The list may be empty.
<p> <p>See also <a href="#smoothSizes">smoothSizes</a>() and <a href="#standardSizes">standardSizes</a>().

<h3 class=fn><a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; <a name="pointSizes-2"></a>TQFontDatabase::pointSizes ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; )
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn><a href="tqstring.html">TQString</a> <a name="scriptName"></a>TQFontDatabase::scriptName ( <a href="tqfont.html#Script-enum">TQFont::Script</a>&nbsp;script )<tt> [static]</tt>
</h3>
Returns a string that gives a default description of the <em>script</em>
(e.g. for displaying to the user in a dialog).  The name matches
the name of the script as defined by the Unicode 3.0 standard.
<p> <p>See also <a href="tqfont.html#Script-enum">TQFont::Script</a>.

<h3 class=fn><a href="tqstring.html">TQString</a> <a name="scriptSample"></a>TQFontDatabase::scriptSample ( <a href="tqfont.html#Script-enum">TQFont::Script</a>&nbsp;script )<tt> [static]</tt>
</h3>
Returns a string with sample characters from <em>script</em>.
<p> <p>See also <a href="tqfont.html#Script-enum">TQFont::Script</a>.

<h3 class=fn><a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; <a name="smoothSizes"></a>TQFontDatabase::smoothSizes ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style )
</h3>
Returns the point sizes of a font that has family <em>family</em> and
style <em>style</em> that will look attractive. The list may be empty.
For non-scalable fonts and bitmap scalable fonts, this function
is equivalent to <a href="#pointSizes">pointSizes</a>().
<p> <p>See also <a href="#pointSizes">pointSizes</a>() and <a href="#standardSizes">standardSizes</a>().

<h3 class=fn><a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; <a name="smoothSizes-2"></a>TQFontDatabase::smoothSizes ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; )
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn><a href="tqvaluelist.html">TQValueList</a>&lt;int&gt; <a name="standardSizes"></a>TQFontDatabase::standardSizes ()<tt> [static]</tt>
</h3>
Returns a list of standard font sizes.
<p> <p>See also <a href="#smoothSizes">smoothSizes</a>() and <a href="#pointSizes">pointSizes</a>().

<h3 class=fn><a href="tqstring.html">TQString</a> <a name="styleString"></a>TQFontDatabase::styleString ( const&nbsp;<a href="tqfont.html">TQFont</a>&nbsp;&amp;&nbsp;f )
</h3>
Returns a string that describes the style of the font <em>f</em>. For
example, "Bold Italic", "Bold", "Italic" or "Normal". An empty
string may be returned.

<h3 class=fn><a href="tqstringlist.html">TQStringList</a> <a name="styles"></a>TQFontDatabase::styles ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family ) const
</h3>
Returns a list of the styles available for the font family <em>family</em>. Some example styles: "Light", "Light Italic", "Bold",
"Oblique", "Demi". The list may be empty.

<h3 class=fn><a href="tqstringlist.html">TQStringList</a> <a name="styles-2"></a>TQFontDatabase::styles ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<h3 class=fn>int <a name="weight"></a>TQFontDatabase::weight ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style ) const
</h3>
Returns the weight of the font that has family <em>family</em> and style
<em>style</em>. If there is no such family and style combination,
returns -1.
<p> <p>See also <a href="#italic">italic</a>() and <a href="#bold">bold</a>().

<h3 class=fn>int <a name="weight-2"></a>TQFontDatabase::weight ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;family, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;style, const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp; ) const
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> 

<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">TQt toolkit</a>.
Copyright &copy; 1995-2007
<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 &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>