Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3f684444755c5ad1181cdd5a97348f3c > files > 1142

PyQt4-devel-4.7.4-2.fc14.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QFontDatabase Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QFontDatabase Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QFontDatabase class provides information about the fonts available in the underlying window system. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qfontdatabase.html#WritingSystem-enum">WritingSystem</a></b> { Any, Latin, Greek, Cyrillic, ..., Nko }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qfontdatabase.html#QFontDatabase">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qfontdatabase.html#QFontDatabase-2">__init__</a></b> (<i>self</i>, QFontDatabase)</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#bold">bold</a></b> (<i>self</i>, QString, QString)</li><li><div class="fn" />QStringList <b><a href="qfontdatabase.html#families">families</a></b> (<i>self</i>, WritingSystem&#160;<i>writingSystem</i>&#160;=&#160;QFontDatabase.Any)</li><li><div class="fn" />QFont <b><a href="qfontdatabase.html#font">font</a></b> (<i>self</i>, QString, QString, int)</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#isBitmapScalable">isBitmapScalable</a></b> (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#isFixedPitch">isFixedPitch</a></b> (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#isScalable">isScalable</a></b> (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#isSmoothlyScalable">isSmoothlyScalable</a></b> (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#italic">italic</a></b> (<i>self</i>, QString, QString)</li><li><div class="fn" />list-of-int <b><a href="qfontdatabase.html#pointSizes">pointSizes</a></b> (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</li><li><div class="fn" />list-of-int <b><a href="qfontdatabase.html#smoothSizes">smoothSizes</a></b> (<i>self</i>, QString, QString)</li><li><div class="fn" />QStringList <b><a href="qfontdatabase.html#styles">styles</a></b> (<i>self</i>, QString)</li><li><div class="fn" />QString <b><a href="qfontdatabase.html#styleString">styleString</a></b> (<i>self</i>, QFont)</li><li><div class="fn" />QString <b><a href="qfontdatabase.html#styleString-2">styleString</a></b> (<i>self</i>, QFontInfo)</li><li><div class="fn" />int <b><a href="qfontdatabase.html#weight">weight</a></b> (<i>self</i>, QString, QString)</li><li><div class="fn" />list-of-QFontDatabase.WritingSystem <b><a href="qfontdatabase.html#writingSystems">writingSystems</a></b> (<i>self</i>)</li><li><div class="fn" />list-of-QFontDatabase.WritingSystem <b><a href="qfontdatabase.html#writingSystems-2">writingSystems</a></b> (<i>self</i>, QString)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />int <b><a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a></b> (QString)</li><li><div class="fn" />int <b><a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a></b> (QByteArray)</li><li><div class="fn" />QStringList <b><a href="qfontdatabase.html#applicationFontFamilies">applicationFontFamilies</a></b> (int)</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#removeAllApplicationFonts">removeAllApplicationFonts</a></b> ()</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a></b> (int)</li><li><div class="fn" />list-of-int <b><a href="qfontdatabase.html#standardSizes">standardSizes</a></b> ()</li><li><div class="fn" />bool <b><a href="qfontdatabase.html#supportsThreadedFontRendering">supportsThreadedFontRendering</a></b> ()</li><li><div class="fn" />QString <b><a href="qfontdatabase.html#writingSystemName">writingSystemName</a></b> (WritingSystem)</li><li><div class="fn" />QString <b><a href="qfontdatabase.html#writingSystemSample">writingSystemSample</a></b> (WritingSystem)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QFontDatabase 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="qfontdatabase.html#families">families</a>() and for the <a href="qfontdatabase.html#pointSizes">pointSizes</a>() and <a href="qfontdatabase.html#styles">styles</a>() that are available for each family. An alternative to <a href="qfontdatabase.html#pointSizes">pointSizes</a>() is <a href="qfontdatabase.html#smoothSizes">smoothSizes</a>() which returns the sizes at which a given family and style will look attractive.</p>
<p>If the font family is available from two or more foundries the foundry name is included in the family name; for example: "Helvetica [Adobe]" and "Helvetica [Cronyx]". When you specify a family, you can either use the old hyphenated "foundry-family" format or the bracketed "family [foundry]" format; for example: "Cronyx-Helvetica" or "Helvetica [Cronyx]". If the family has a foundry it is always returned using the bracketed format, as is the case with the value returned by <a href="qfontdatabase.html#families">families</a>().</p>
<p>The <a href="qfontdatabase.html#font">font</a>() function returns a <a href="qfont.html">QFont</a> given a family, style and point size.</p>
<p>A family and style combination can be checked to see if it is <a href="qfontdatabase.html#italic">italic</a>() or <a href="qfontdatabase.html#bold">bold</a>(), and to retrieve its <a href="qfontdatabase.html#weight">weight</a>(). Similarly we can call <a href="qfontdatabase.html#isBitmapScalable">isBitmapScalable</a>(), <a href="qfontdatabase.html#isSmoothlyScalable">isSmoothlyScalable</a>(), <a href="qfontdatabase.html#isScalable">isScalable</a>() and <a href="qfontdatabase.html#isFixedPitch">isFixedPitch</a>().</p>
<p>Use the <a href="qfontdatabase.html#styleString">styleString</a>() to obtain a text version of a style.</p>
<p>The QFontDatabase class also supports some static functions, for example, <a href="qfontdatabase.html#standardSizes">standardSizes</a>(). You can retrieve the description of a writing system using <a href="qfontdatabase.html#writingSystemName">writingSystemName</a>(), and a sample of characters in a writing system with <a href="qfontdatabase.html#writingSystemSample">writingSystemSample</a>().</p>
<p>Example:</p>
<pre>     QFontDatabase database;
     QTreeWidget fontTree;
     fontTree.setColumnCount(2);
     fontTree.setHeaderLabels(QStringList() &lt;&lt; "Font" &lt;&lt; "Smooth Sizes");

     foreach (QString family, database.families()) {
         QTreeWidgetItem *familyItem = new QTreeWidgetItem(&amp;fontTree);
         familyItem-&gt;setText(0, family);

         foreach (QString style, database.styles(family)) {
             QTreeWidgetItem *styleItem = new QTreeWidgetItem(familyItem);
             styleItem-&gt;setText(0, style);

             QString sizes;
             foreach (int points, database.smoothSizes(family, style))
                 sizes += QString.number(points) + " ";

             styleItem-&gt;setText(1, sizes.trimmed());
         }
     }</pre>
<p>This example gets the list of font families, the list of styles for each family, and the point sizes that are available for each combination of family and style, displaying this information in a tree view.</p>
<p>See also <a href="qfont.html">QFont</a>, <a href="qfontinfo.html">QFontInfo</a>, <a href="qfontmetrics.html">QFontMetrics</a>, <a href="qfontcombobox.html">QFontComboBox</a>, and <a href="widgets-charactermap.html">Character Map Example</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="WritingSystem-enum" />QFontDatabase.WritingSystem</h3><p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QFontDatabase.Any</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Latin</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Greek</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Cyrillic</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Armenian</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Hebrew</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Arabic</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Syriac</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Thaana</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Devanagari</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Bengali</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Gurmukhi</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Gujarati</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Oriya</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Tamil</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Telugu</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Kannada</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Malayalam</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Sinhala</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Thai</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Lao</tt></td><td align="center" valign="top"><tt>20</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Tibetan</tt></td><td align="center" valign="top"><tt>21</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Myanmar</tt></td><td align="center" valign="top"><tt>22</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Georgian</tt></td><td align="center" valign="top"><tt>23</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Khmer</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.SimplifiedChinese</tt></td><td align="center" valign="top"><tt>25</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.TraditionalChinese</tt></td><td align="center" valign="top"><tt>26</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Japanese</tt></td><td align="center" valign="top"><tt>27</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Korean</tt></td><td align="center" valign="top"><tt>28</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Vietnamese</tt></td><td align="center" valign="top"><tt>29</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Symbol</tt></td><td align="center" valign="top"><tt>30</tt></td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Other</tt></td><td align="center" valign="top"><tt>Symbol</tt></td><td valign="top">(the same as Symbol)</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Ogham</tt></td><td align="center" valign="top">?</td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Runic</tt></td><td align="center" valign="top">?</td><td valign="top">&#160;</td></tr>
<tr><td valign="top"><tt>QFontDatabase.Nko</tt></td><td align="center" valign="top">?</td><td valign="top">&#160;</td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QFontDatabase" />QFontDatabase.__init__ (<i>self</i>)</h3><p>Creates a font database object.</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/addApplicationFont" />
<h3 class="fn"><a name="QFontDatabase-2" />QFontDatabase.__init__ (<i>self</i>, <a href="qfontdatabase.html">QFontDatabase</a>)</h3><h3 class="fn"><a name="addApplicationFont" />int QFontDatabase.addApplicationFont (QString)</h3><p>Loads the font from the file specified by <i>fileName</i> and makes it available to the application. An ID is returned that can be used to remove the font again with <a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a>() or to retrieve the list of family names contained in the font.</p>
<p>The function returns -1 if the font could not be loaded.</p>
<p>Currently only TrueType fonts, TrueType font collections, and OpenType fonts are supported.</p>
<p><b>Note:</b> Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.</p>
<p>This function was introduced in Qt 4.2.</p>
<p>See also <a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a>(), <a href="qfontdatabase.html#applicationFontFamilies">applicationFontFamilies</a>(), and <a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/addApplicationFontFromData" />
<h3 class="fn"><a name="addApplicationFontFromData" />int QFontDatabase.addApplicationFontFromData (<a href="qbytearray.html">QByteArray</a>)</h3><p>Loads the font from binary data specified by <i>fontData</i> and makes it available to the application. An ID is returned that can be used to remove the font again with <a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a>() or to retrieve the list of family names contained in the font.</p>
<p>The function returns -1 if the font could not be loaded.</p>
<p>Currently only TrueType fonts and TrueType font collections are supported.</p>
<p><b>Note:</b> Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.</p>
<p>This function was introduced in Qt 4.2.</p>
<p>See also <a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a>(), <a href="qfontdatabase.html#applicationFontFamilies">applicationFontFamilies</a>(), and <a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/applicationFontFamilies" />
<h3 class="fn"><a name="applicationFontFamilies" />QStringList QFontDatabase.applicationFontFamilies (int)</h3><p>Returns a list of font families for the given application font identified by <i>id</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p>See also <a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a>() and <a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/bold" />
<h3 class="fn"><a name="bold" />bool QFontDatabase.bold (<i>self</i>, QString, QString)</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> is bold; otherwise returns false.</p>
<p>See also <a href="qfontdatabase.html#italic">italic</a>() and <a href="qfontdatabase.html#weight">weight</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/families" />
<h3 class="fn"><a name="families" />QStringList QFontDatabase.families (<i>self</i>, <a href="qfontdatabase.html#WritingSystem-enum">WritingSystem</a>&#160;<i>writingSystem</i>&#160;=&#160;QFontDatabase.Any)</h3><p>Returns a sorted list of the available font families which support the <i>writingSystem</i>.</p>
<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".</p>
<p>See also <a href="qfontdatabase.html#writingSystems">writingSystems</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/font" />
<h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QFontDatabase.font (<i>self</i>, QString, QString, int)</h3><p>Returns a <a href="qfont.html">QFont</a> object that has family <i>family</i>, style <i>style</i> and point size <i>pointSize</i>. If no matching font could be created, a <a href="qfont.html">QFont</a> object that uses the application's default font is returned.</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/isBitmapScalable" />
<h3 class="fn"><a name="isBitmapScalable" />bool QFontDatabase.isBitmapScalable (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> 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="qfontdatabase.html#smoothSizes">smoothSizes</a>().</p>
<p>See also <a href="qfontdatabase.html#isScalable">isScalable</a>() and <a href="qfontdatabase.html#isSmoothlyScalable">isSmoothlyScalable</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/isFixedPitch" />
<h3 class="fn"><a name="isFixedPitch" />bool QFontDatabase.isFixedPitch (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> is fixed pitch; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/isScalable" />
<h3 class="fn"><a name="isScalable" />bool QFontDatabase.isScalable (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> is scalable; otherwise returns false.</p>
<p>See also <a href="qfontdatabase.html#isBitmapScalable">isBitmapScalable</a>() and <a href="qfontdatabase.html#isSmoothlyScalable">isSmoothlyScalable</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/isSmoothlyScalable" />
<h3 class="fn"><a name="isSmoothlyScalable" />bool QFontDatabase.isSmoothlyScalable (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> 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="qfontdatabase.html#isScalable">isScalable</a>() and <a href="qfontdatabase.html#isBitmapScalable">isBitmapScalable</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/italic" />
<h3 class="fn"><a name="italic" />bool QFontDatabase.italic (<i>self</i>, QString, QString)</h3><p>Returns true if the font that has family <i>family</i> and style <i>style</i> is italic; otherwise returns false.</p>
<p>See also <a href="qfontdatabase.html#weight">weight</a>() and <a href="qfontdatabase.html#bold">bold</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/pointSizes" />
<h3 class="fn"><a name="pointSizes" />list-of-int QFontDatabase.pointSizes (<i>self</i>, QString, QString&#160;<i>style</i>&#160;=&#160;QString())</h3><p>Returns a list of the point sizes available for the font that has family <i>family</i> and style <i>style</i>. The list may be empty.</p>
<p>See also <a href="qfontdatabase.html#smoothSizes">smoothSizes</a>() and <a href="qfontdatabase.html#standardSizes">standardSizes</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/removeAllApplicationFonts" />
<h3 class="fn"><a name="removeAllApplicationFonts" />bool QFontDatabase.removeAllApplicationFonts ()</h3><p>Removes all application-local fonts previously added using <a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a>() and <a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a>().</p>
<p>Returns true if unloading of the fonts succeeded; otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p>See also <a href="qfontdatabase.html#removeApplicationFont">removeApplicationFont</a>(), <a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a>(), and <a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/removeApplicationFont" />
<h3 class="fn"><a name="removeApplicationFont" />bool QFontDatabase.removeApplicationFont (int)</h3><p>Removes the previously loaded application font identified by <i>id</i>. Returns true if unloading of the font succeeded; otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p>See also <a href="qfontdatabase.html#removeAllApplicationFonts">removeAllApplicationFonts</a>(), <a href="qfontdatabase.html#addApplicationFont">addApplicationFont</a>(), and <a href="qfontdatabase.html#addApplicationFontFromData">addApplicationFontFromData</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/smoothSizes" />
<h3 class="fn"><a name="smoothSizes" />list-of-int QFontDatabase.smoothSizes (<i>self</i>, QString, QString)</h3><p>Returns the point sizes of a font that has family <i>family</i> and style <i>style</i> that will look attractive. The list may be empty. For non-scalable fonts and bitmap scalable fonts, this function is equivalent to <a href="qfontdatabase.html#pointSizes">pointSizes</a>().</p>
<p>See also <a href="qfontdatabase.html#pointSizes">pointSizes</a>() and <a href="qfontdatabase.html#standardSizes">standardSizes</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/standardSizes" />
<h3 class="fn"><a name="standardSizes" />list-of-int QFontDatabase.standardSizes ()</h3><p>Returns a list of standard font sizes.</p>
<p>See also <a href="qfontdatabase.html#smoothSizes">smoothSizes</a>() and <a href="qfontdatabase.html#pointSizes">pointSizes</a>().</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/styleString" />
<h3 class="fn"><a name="styles" />QStringList QFontDatabase.styles (<i>self</i>, QString)</h3><p>Returns a list of the styles available for the font family <i>family</i>. Some example styles: "Light", "Light Italic", "Bold", "Oblique", "Demi". The list may be empty.</p>
<p>See also <a href="qfontdatabase.html#families">families</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/supportsThreadedFontRendering" />
<h3 class="fn"><a name="styleString" />QString QFontDatabase.styleString (<i>self</i>, <a href="qfont.html">QFont</a>)</h3><p>Returns a string that describes the style of the <i>font</i>. For example, "Bold Italic", "Bold", "Italic" or "Normal". An empty string may be returned.</p>
<h3 class="fn"><a name="styleString-2" />QString QFontDatabase.styleString (<i>self</i>, <a href="qfontinfo.html">QFontInfo</a>)</h3><p>Returns a string that describes the style of the <i>fontInfo</i>. For example, "Bold Italic", "Bold", "Italic" or "Normal". An empty string may be returned.</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/styles" />
<h3 class="fn"><a name="supportsThreadedFontRendering" />bool QFontDatabase.supportsThreadedFontRendering ()</h3><p>Returns true if font rendering is supported outside the GUI thread, false otherwise. In other words, a return value of false means that all <a href="qpainter.html#drawText">QPainter.drawText</a>() calls outside the GUI thread will not produce readable output.</p>
<p>This function was introduced in Qt 4.4.</p>
<p>See also <a href="threads-modules.html#painting-in-threads">Painting In Threads</a>.</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/weight" />
<h3 class="fn"><a name="weight" />int QFontDatabase.weight (<i>self</i>, QString, QString)</h3><p>Returns the weight of the font that has family <i>family</i> and style <i>style</i>. If there is no such family and style combination, returns -1.</p>
<p>See also <a href="qfontdatabase.html#italic">italic</a>() and <a href="qfontdatabase.html#bold">bold</a>().</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/writingSystemName" />
<h3 class="fn"><a name="writingSystemName" />QString QFontDatabase.writingSystemName (<a href="qfontdatabase.html#WritingSystem-enum">WritingSystem</a>)</h3><p>Returns the names the <i>writingSystem</i> (e.g. for displaying to the user in a dialog).</p>
<a name="//apple_ref/cpp/clm/QFontDatabase/writingSystemSample" />
<h3 class="fn"><a name="writingSystems" />list-of-QFontDatabase.WritingSystem QFontDatabase.writingSystems (<i>self</i>)</h3><p>Returns a sorted list of the available writing systems. This is list generated from information about all installed fonts on the system.</p>
<p>See also <a href="qfontdatabase.html#families">families</a>().</p>
<h3 class="fn"><a name="writingSystems-2" />list-of-QFontDatabase.WritingSystem QFontDatabase.writingSystems (<i>self</i>, QString)</h3><p>Returns a sorted list of the writing systems supported by a given font <i>family</i>.</p>
<p>See also <a href="qfontdatabase.html#families">families</a>().</p>
<p /><h3 class="fn"><a name="writingSystemSample" />QString QFontDatabase.writingSystemSample (<a href="qfontdatabase.html#WritingSystem-enum">WritingSystem</a>)</h3><p>Returns a string with sample characters from <i>writingSystem</i>.</p>
<a name="//apple_ref/cpp/instm/QFontDatabase/writingSystems" />
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.4 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>