~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qfontinfo.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/gui/text/qfont.cpp -->
 
5
<!-- qfont.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QFontInfo Class Reference</title>
 
7
  <title>Qt 4.6: QFontInfo Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//QFontInfo" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QFontInfo Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">QFontInfo Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
16
17
</h1>
17
18
<p>The QFontInfo class provides general information about fonts. <a href="#details">More...</a></p>
18
 
<pre> #include &lt;QFontInfo&gt;</pre><p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
 
19
<pre> #include &lt;QFontInfo&gt;</pre><p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
19
20
<ul>
20
21
<li><a href="qfontinfo-members.html">List of all members, including inherited members</a></li>
21
22
</ul>
 
23
<hr />
22
24
<a name="public-functions"></a>
23
 
<h3>Public Functions</h3>
24
 
<ul>
25
 
<li><div class="fn"></div><b><a href="qfontinfo.html#QFontInfo">QFontInfo</a></b> ( const QFont &amp; <i>font</i> )</li>
26
 
<li><div class="fn"></div><b><a href="qfontinfo.html#QFontInfo-2">QFontInfo</a></b> ( const QFontInfo &amp; <i>fi</i> )</li>
27
 
<li><div class="fn"></div><b><a href="qfontinfo.html#dtor.QFontInfo">~QFontInfo</a></b> ()</li>
28
 
<li><div class="fn"></div>bool <b><a href="qfontinfo.html#bold">bold</a></b> () const</li>
29
 
<li><div class="fn"></div>bool <b><a href="qfontinfo.html#exactMatch">exactMatch</a></b> () const</li>
30
 
<li><div class="fn"></div>QString <b><a href="qfontinfo.html#family">family</a></b> () const</li>
31
 
<li><div class="fn"></div>bool <b><a href="qfontinfo.html#fixedPitch">fixedPitch</a></b> () const</li>
32
 
<li><div class="fn"></div>bool <b><a href="qfontinfo.html#italic">italic</a></b> () const</li>
33
 
<li><div class="fn"></div>int <b><a href="qfontinfo.html#pixelSize">pixelSize</a></b> () const</li>
34
 
<li><div class="fn"></div>int <b><a href="qfontinfo.html#pointSize">pointSize</a></b> () const</li>
35
 
<li><div class="fn"></div>qreal <b><a href="qfontinfo.html#pointSizeF">pointSizeF</a></b> () const</li>
36
 
<li><div class="fn"></div>bool <b><a href="qfontinfo.html#rawMode">rawMode</a></b> () const</li>
37
 
<li><div class="fn"></div>QFont::Style <b><a href="qfontinfo.html#style">style</a></b> () const</li>
38
 
<li><div class="fn"></div>QFont::StyleHint <b><a href="qfontinfo.html#styleHint">styleHint</a></b> () const</li>
39
 
<li><div class="fn"></div>int <b><a href="qfontinfo.html#weight">weight</a></b> () const</li>
40
 
<li><div class="fn"></div>QFontInfo &amp; <b><a href="qfontinfo.html#operator-eq">operator=</a></b> ( const QFontInfo &amp; <i>fi</i> )</li>
41
 
</ul>
 
25
<h2>Public Functions</h2>
 
26
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
27
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#QFontInfo">QFontInfo</a></b> ( const QFont &amp; <i>font</i> )</td></tr>
 
28
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#QFontInfo-2">QFontInfo</a></b> ( const QFontInfo &amp; <i>fi</i> )</td></tr>
 
29
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#dtor.QFontInfo">~QFontInfo</a></b> ()</td></tr>
 
30
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#bold">bold</a></b> () const</td></tr>
 
31
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#exactMatch">exactMatch</a></b> () const</td></tr>
 
32
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#family">family</a></b> () const</td></tr>
 
33
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#fixedPitch">fixedPitch</a></b> () const</td></tr>
 
34
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#italic">italic</a></b> () const</td></tr>
 
35
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#pixelSize">pixelSize</a></b> () const</td></tr>
 
36
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#pointSize">pointSize</a></b> () const</td></tr>
 
37
<tr><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#pointSizeF">pointSizeF</a></b> () const</td></tr>
 
38
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#rawMode">rawMode</a></b> () const</td></tr>
 
39
<tr><td class="memItemLeft" align="right" valign="top">QFont::Style </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#style">style</a></b> () const</td></tr>
 
40
<tr><td class="memItemLeft" align="right" valign="top">QFont::StyleHint </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#styleHint">styleHint</a></b> () const</td></tr>
 
41
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#weight">weight</a></b> () const</td></tr>
 
42
<tr><td class="memItemLeft" align="right" valign="top">QFontInfo &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qfontinfo.html#operator-eq">operator=</a></b> ( const QFontInfo &amp; <i>fi</i> )</td></tr>
 
43
</table>
42
44
<a name="details"></a>
43
45
<hr />
44
46
<h2>Detailed Description</h2>
55
57
<p>See also <a href="qfont.html">QFont</a>, <a href="qfontmetrics.html">QFontMetrics</a>, and <a href="qfontdatabase.html">QFontDatabase</a>.</p>
56
58
<hr />
57
59
<h2>Member Function Documentation</h2>
 
60
<a name="//apple_ref/cpp/instm/QFontInfo/QFontInfo" />
58
61
<h3 class="fn"><a name="QFontInfo"></a>QFontInfo::QFontInfo ( const <a href="qfont.html">QFont</a> &amp; <i>font</i> )</h3>
59
62
<p>Constructs a font info object for <i>font</i>.</p>
60
63
<p>The font must be screen-compatible, i.e&#x2e; a font you use when drawing text in <a href="qwidget.html">widgets</a> or <a href="qpixmap.html">pixmaps</a>, not <a href="qpicture.html">QPicture</a> or <a href="qprinter.html">QPrinter</a>.</p>
62
65
<p>Use <a href="qpainter.html#fontInfo">QPainter::fontInfo</a>() to get the font info when painting. This will give correct results also when painting on paint device that is not screen-compatible.</p>
63
66
<h3 class="fn"><a name="QFontInfo-2"></a>QFontInfo::QFontInfo ( const QFontInfo &amp; <i>fi</i> )</h3>
64
67
<p>Constructs a copy of <i>fi</i>.</p>
 
68
<a name="//apple_ref/cpp/instm/QFontInfo/~QFontInfo" />
65
69
<h3 class="fn"><a name="dtor.QFontInfo"></a>QFontInfo::~QFontInfo ()</h3>
66
70
<p>Destroys the font info object.</p>
 
71
<a name="//apple_ref/cpp/instm/QFontInfo/bold" />
67
72
<h3 class="fn"><a name="bold"></a>bool QFontInfo::bold () const</h3>
68
73
<p>Returns true if <a href="qfontinfo.html#weight">weight</a>() would return a value greater than <a href="qfont.html#Weight-enum">QFont::Normal</a>; otherwise returns false.</p>
69
74
<p>See also <a href="qfontinfo.html#weight">weight</a>() and <a href="qfont.html#bold">QFont::bold</a>().</p>
 
75
<a name="//apple_ref/cpp/instm/QFontInfo/exactMatch" />
70
76
<h3 class="fn"><a name="exactMatch"></a>bool QFontInfo::exactMatch () const</h3>
71
77
<p>Returns true if the matched window system font is exactly the same as the one specified by the font; otherwise returns false.</p>
72
78
<p>See also <a href="qfont.html#exactMatch">QFont::exactMatch</a>().</p>
 
79
<a name="//apple_ref/cpp/instm/QFontInfo/family" />
73
80
<h3 class="fn"><a name="family"></a><a href="qstring.html">QString</a> QFontInfo::family () const</h3>
74
81
<p>Returns the family name of the matched window system font.</p>
75
82
<p>See also <a href="qfont.html#family">QFont::family</a>().</p>
 
83
<a name="//apple_ref/cpp/instm/QFontInfo/fixedPitch" />
76
84
<h3 class="fn"><a name="fixedPitch"></a>bool QFontInfo::fixedPitch () const</h3>
77
85
<p>Returns the fixed pitch value of the matched window system font.</p>
78
86
<p>See also <a href="qfont.html#fixedPitch">QFont::fixedPitch</a>().</p>
 
87
<a name="//apple_ref/cpp/instm/QFontInfo/italic" />
79
88
<h3 class="fn"><a name="italic"></a>bool QFontInfo::italic () const</h3>
80
89
<p>Returns the italic value of the matched window system font.</p>
81
90
<p>See also <a href="qfont.html#italic">QFont::italic</a>().</p>
 
91
<a name="//apple_ref/cpp/instm/QFontInfo/pixelSize" />
82
92
<h3 class="fn"><a name="pixelSize"></a>int QFontInfo::pixelSize () const</h3>
83
93
<p>Returns the pixel size of the matched window system font.</p>
84
94
<p>See also <a href="qfont.html#pointSize">QFont::pointSize</a>().</p>
 
95
<a name="//apple_ref/cpp/instm/QFontInfo/pointSize" />
85
96
<h3 class="fn"><a name="pointSize"></a>int QFontInfo::pointSize () const</h3>
86
97
<p>Returns the point size of the matched window system font.</p>
87
98
<p>See also <a href="qfontinfo.html#pointSizeF">pointSizeF</a>() and <a href="qfont.html#pointSize">QFont::pointSize</a>().</p>
 
99
<a name="//apple_ref/cpp/instm/QFontInfo/pointSizeF" />
88
100
<h3 class="fn"><a name="pointSizeF"></a><a href="qtglobal.html#qreal-typedef">qreal</a> QFontInfo::pointSizeF () const</h3>
89
101
<p>Returns the point size of the matched window system font.</p>
90
102
<p>See also <a href="qfont.html#pointSizeF">QFont::pointSizeF</a>().</p>
 
103
<a name="//apple_ref/cpp/instm/QFontInfo/rawMode" />
91
104
<h3 class="fn"><a name="rawMode"></a>bool QFontInfo::rawMode () const</h3>
92
105
<p>Returns true if the font is a raw mode font; otherwise returns false.</p>
93
106
<p>If it is a raw mode font, all other functions in <a href="qfontinfo.html">QFontInfo</a> will return the same values set in the <a href="qfont.html">QFont</a>, regardless of the font actually used.</p>
94
107
<p>See also <a href="qfont.html#rawMode">QFont::rawMode</a>().</p>
 
108
<a name="//apple_ref/cpp/instm/QFontInfo/style" />
95
109
<h3 class="fn"><a name="style"></a><a href="qfont.html#Style-enum">QFont::Style</a> QFontInfo::style () const</h3>
96
110
<p>Returns the style value of the matched window system font.</p>
97
111
<p>See also <a href="qfont.html#style">QFont::style</a>().</p>
 
112
<a name="//apple_ref/cpp/instm/QFontInfo/styleHint" />
98
113
<h3 class="fn"><a name="styleHint"></a><a href="qfont.html#StyleHint-enum">QFont::StyleHint</a> QFontInfo::styleHint () const</h3>
99
114
<p>Returns the style of the matched window system font.</p>
100
115
<p>Currently only returns the style hint set in <a href="qfont.html">QFont</a>.</p>
101
116
<p>See also <a href="qfont.html#styleHint">QFont::styleHint</a>() and <a href="qfont.html#StyleHint-enum">QFont::StyleHint</a>.</p>
 
117
<a name="//apple_ref/cpp/instm/QFontInfo/weight" />
102
118
<h3 class="fn"><a name="weight"></a>int QFontInfo::weight () const</h3>
103
119
<p>Returns the weight of the matched window system font.</p>
104
120
<p>See also <a href="qfont.html#weight">QFont::weight</a>() and <a href="qfontinfo.html#bold">bold</a>().</p>
 
121
<a name="//apple_ref/cpp/instm/QFontInfo/operator=" />
105
122
<h3 class="fn"><a name="operator-eq"></a>QFontInfo &amp; QFontInfo::operator= ( const QFontInfo &amp; <i>fi</i> )</h3>
106
123
<p>Assigns the font info in <i>fi</i>.</p>
107
124
<p /><address><hr /><div align="center">
108
125
<table width="100%" cellspacing="0" border="0"><tr class="address">
109
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
110
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
111
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
112
 
</tr></table></div></address></body>
 
126
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
127
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
128
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
129
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
113
130
</html>