⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qfontdatabase.html

📁 QT 下载资料仅供参考
💻 HTML
📖 第 1 页 / 共 2 页
字号:
that font is in the form "family [foundry]". Examples: "Times[Adobe]", "Times [Cronyx]", "Palatino".<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="families-2"></a>QFontDatabase::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="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 )</h3>Returns a <a href="qfont.html">QFont</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 QFont object that uses the application's default font isreturned.<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; )</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>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</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. Scalinga bitmap font usually produces an unattractive hardly readableresult, because the pixels of the font are scaled. If you need toscale a bitmap font it is better to scale it to one of the fixedsizes 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>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</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>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</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>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</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>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</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>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</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>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</h3>Returns TRUE if the font that has family <em>family</em> and style <em>style</em> is smoothly scalable; otherwise returns FALSE. If thisfunction 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>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</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>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</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>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</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="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 )</h3>Returns a list of the point sizes available for the font that hasfamily <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="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; )</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="qstring.html">QString</a> <a name="scriptName"></a>QFontDatabase::scriptName ( <a href="qfont.html#Script-enum">QFont::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 matchesthe name of the script as defined by the Unicode 3.0 standard.<p> <p>See also <a href="qfont.html#Script-enum">QFont::Script</a>.<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></h3>Returns a string with sample characters from <em>script</em>.<p> <p>See also <a href="qfont.html#Script-enum">QFont::Script</a>.<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 )</h3>Returns the point sizes of a font that has family <em>family</em> andstyle <em>style</em> that will look attractive. The list may be empty.For non-scalable fonts and smoothly scalable fonts, this functionis 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="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; )</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="qvaluelist.html">QValueList</a>&lt;int&gt; <a name="standardSizes"></a>QFontDatabase::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="qstring.html">QString</a> <a name="styleString"></a>QFontDatabase::styleString ( const&nbsp;<a href="qfont.html">QFont</a>&nbsp;&amp;&nbsp;f )</h3>Returns a string that describes the style of the font <em>f</em>. Forexample, "Bold Italic", "Bold", "Italic" or "Normal". An emptystring may be returned.<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</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="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</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>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</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>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</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">Qt toolkit</a>.Copyright &copy; 1995-2002<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; 2002 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align=right><div align=right>Qt version 3.0.5</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -