<class name="QFont" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; class specifies a font used for drawing text.&lt;/p&gt;
&lt;p&gt;When you create a &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; object you specify various attributes that you want the font to have. Qt will use the font with the specified attributes, or if no matching font exists, Qt will use the closest matching installed font. The attributes of the font that is actually used are retrievable from a &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object. If the window system provides an exact match &lt;a href=&quot;QFont.html#exactMatch()&quot;&gt;&lt;tt&gt;exactMatch&lt;/tt&gt;&lt;/a&gt; returns true. Use &lt;a href=&quot;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; to get measurements, e.g&amp;#x2e; the pixel length of a string using QFontMetrics::width().&lt;/p&gt;
&lt;p&gt;Use QApplication::setFont() to set the application's default font.&lt;/p&gt;
&lt;p&gt;If a chosen font does not include all the characters that need to be displayed, &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; will try to find the characters in the nearest equivalent fonts. When a &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; draws a character from a font the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; will report whether or not it has the character; if it does not, &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; will draw an unfilled square.&lt;/p&gt;
&lt;p&gt;Create QFonts like this:&lt;/p&gt;
&lt;pre&gt;    QFont serifFont(&amp;quot;Times&amp;quot;, 10, QFont::Bold);
    QFont sansFont(&amp;quot;Helvetica [Cronyx]&amp;quot;, 12);&lt;/pre&gt;
&lt;p&gt;The attributes set in the constructor can also be set later, e.g&amp;#x2e; &lt;a href=&quot;QFont.html#setFamily(java.lang.String)&quot;&gt;&lt;tt&gt;setFamily&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt;, setPointSizeFloat(), &lt;a href=&quot;QFont.html#setWeight(int)&quot;&gt;&lt;tt&gt;setWeight&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFont.html#setItalic(boolean)&quot;&gt;&lt;tt&gt;setItalic&lt;/tt&gt;&lt;/a&gt;. The remaining attributes must be set after contstruction, e.g&amp;#x2e; &lt;a href=&quot;QFont.html#setBold(boolean)&quot;&gt;&lt;tt&gt;setBold&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFont.html#setUnderline(boolean)&quot;&gt;&lt;tt&gt;setUnderline&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFont.html#setOverline(boolean)&quot;&gt;&lt;tt&gt;setOverline&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFont.html#setStrikeOut(boolean)&quot;&gt;&lt;tt&gt;setStrikeOut&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFont.html#setFixedPitch(boolean)&quot;&gt;&lt;tt&gt;setFixedPitch&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; objects should be created &lt;i&gt;after&lt;/i&gt; the font's attributes have been set. A &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object will not change, even if you change the font's attributes. The corresponding &amp;quot;get&amp;quot; functions, e.g&amp;#x2e; &lt;a href=&quot;QFont.html#family()&quot;&gt;&lt;tt&gt;family&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFont.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt;, etc., return the values that were set, even though the values used may differ. The actual values are available from a &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;If the requested font family is unavailable you can influence the &lt;a href=&quot;QFont.html#fontmatching&quot;&gt;font matching algorithm&lt;/tt&gt;&lt;/a&gt; by choosing a particular &lt;tt&gt;QFont::StyleHint&lt;/tt&gt; and &lt;tt&gt;QFont::StyleStrategy&lt;/tt&gt; with &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;. The default family (corresponding to the current style hint) is returned by &lt;a href=&quot;QFont.html#defaultFamily()&quot;&gt;&lt;tt&gt;defaultFamily&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The font-matching algorithm has a &lt;a href=&quot;QFont.html#lastResortFamily()&quot;&gt;&lt;tt&gt;lastResortFamily&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFont.html#lastResortFont()&quot;&gt;&lt;tt&gt;lastResortFont&lt;/tt&gt;&lt;/a&gt; in cases where a suitable match cannot be found. You can provide substitutions for font family names using &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFont.html#insertSubstitutions(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;insertSubstitutions&lt;/tt&gt;&lt;/a&gt;. Substitutions can be removed with &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt;. Use &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt; to retrieve a family's first substitute, or the family name itself if it has no substitutes. Use &lt;a href=&quot;QFont.html#substitutes(java.lang.String)&quot;&gt;&lt;tt&gt;substitutes&lt;/tt&gt;&lt;/a&gt; to retrieve a list of a family's substitutes (which may be empty).&lt;/p&gt;
&lt;p&gt;Every &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; has a &lt;a href=&quot;QFont.html#key()&quot;&gt;&lt;tt&gt;key&lt;/tt&gt;&lt;/a&gt; which you can use, for example, as the key in a cache or dictionary. If you want to store a user's font preferences you could use &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt;, writing the font information with &lt;a href=&quot;QFont.html#toString()&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; and reading it back with &lt;a href=&quot;QFont.html#fromString(java.lang.String)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt;. The operator&amp;lt;&amp;lt;() and operator&amp;gt;&amp;gt;() functions are also available, but they work on a data stream.&lt;/p&gt;
&lt;p&gt;It is possible to set the height of characters shown on the screen to a specified number of pixels with &lt;a href=&quot;QFont.html#setPixelSize(int)&quot;&gt;&lt;tt&gt;setPixelSize&lt;/tt&gt;&lt;/a&gt;; however using &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt; has a similar effect and provides device independence.&lt;/p&gt;
&lt;p&gt;Under X11 you can set a font using its system specific name with &lt;a href=&quot;QFont.html#setRawName(java.lang.String)&quot;&gt;&lt;tt&gt;setRawName&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Loading fonts can be expensive, especially on X11. &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; contains extensive optimizations to make the copying of &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; objects fast, and to cache the results of the slow window system functions it depends upon.&lt;/p&gt;
&lt;a name=&quot;fontmatching&quot;&gt;&lt;/a&gt;&lt;p&gt;The font matching algorithm works as follows:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;The specified font family is searched for.&lt;/li&gt;
&lt;li&gt;If not found, the &lt;a href=&quot;QFont.html#styleHint()&quot;&gt;&lt;tt&gt;styleHint&lt;/tt&gt;&lt;/a&gt; is used to select a replacement family.&lt;/li&gt;
&lt;li&gt;Each replacement font family is searched for.&lt;/li&gt;
&lt;li&gt;If none of these are found or there was no &lt;a href=&quot;QFont.html#styleHint()&quot;&gt;&lt;tt&gt;styleHint&lt;/tt&gt;&lt;/a&gt;, &amp;quot;helvetica&amp;quot; will be searched for.&lt;/li&gt;
&lt;li&gt;If &amp;quot;helvetica&amp;quot; isn't found Qt will try the &lt;a href=&quot;QFont.html#lastResortFamily()&quot;&gt;&lt;tt&gt;lastResortFamily&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If the &lt;a href=&quot;QFont.html#lastResortFamily()&quot;&gt;&lt;tt&gt;lastResortFamily&lt;/tt&gt;&lt;/a&gt; isn't found Qt will try the &lt;a href=&quot;QFont.html#lastResortFont()&quot;&gt;&lt;tt&gt;lastResortFont&lt;/tt&gt;&lt;/a&gt; which will always return a name of some kind.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the actual font matching algorithm varies from platform to platform.&lt;/p&gt;
&lt;p&gt;Once a font is found, the remaining attributes are matched in order of priority:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;&lt;a href=&quot;QFont.html#fixedPitch()&quot;&gt;&lt;tt&gt;fixedPitch&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QFont.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt; (see below)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QFont.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QFont.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have a font which matches on family, even if none of the other attributes match, this font will be chosen in preference to a font which doesn't match on family but which does match on the other attributes. This is because font family is the dominant search criteria.&lt;/p&gt;
&lt;p&gt;The point size is defined to match if it is within 20% of the requested point size. When several fonts match and are only distinguished by point size, the font with the closest point size to the one requested will be chosen.&lt;/p&gt;
&lt;p&gt;The actual family, font size, weight and other font attributes used for drawing text will depend on what's available for the chosen family under the window system. A &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object can be used to determine the actual values used for drawing the text.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;pre&gt;    QFont f(&amp;quot;Helvetica&amp;quot;);&lt;/pre&gt;
&lt;p&gt;If you had both an Adobe and a Cronyx Helvetica, you might get either.&lt;/p&gt;
&lt;pre&gt;    QFont f(&amp;quot;Helvetica [Cronyx]&amp;quot;);&lt;/pre&gt;
&lt;p&gt;You can specify the foundry you want in the family name. The font f in the above example will be set to &amp;quot;Helvetica [Cronyx]&amp;quot;.&lt;/p&gt;
&lt;p&gt;To determine the attributes of the font actually used in the window system, use a &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object, e.g&amp;#x2e;&lt;/p&gt;
&lt;pre&gt;    QFontInfo info(f1);
    QString family = info.family();&lt;/pre&gt;
&lt;p&gt;To find out font metrics use a &lt;a href=&quot;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; object, e.g&amp;#x2e;&lt;/p&gt;
&lt;pre&gt;    QFontMetrics fm(f1);
    int textWidthInPixels = fm.width(&amp;quot;How many pixels wide is this text?&amp;quot;);
    int textHeightInPixels = fm.height();&lt;/pre&gt;
&lt;p&gt;For more general information on fonts, see the &lt;a href=&quot;http://nwalsh.com/comp.fonts/FAQ/&quot;&gt;comp.fonts FAQ.&lt;/tt&gt;&lt;/a&gt; Information on encodings can be found from &lt;a href=&quot;http://czyborra.com/&quot;&gt;Roman Czyborra's&lt;/tt&gt;&lt;/a&gt; page.&lt;/p&gt;

@see &lt;a href=&quot;QFontComboBox.html&quot;&gt;&lt;tt&gt;QFontComboBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontDatabase.html&quot;&gt;&lt;tt&gt;QFontDatabase&lt;/tt&gt;&lt;/a&gt;
@see Character Map Example&lt;/tt&gt; */">
    <method name="public QFont(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Constructs a font that is a copy of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFont(java.lang.String family, int pointSize, int weight, boolean italic)" doc="/**
&lt;p&gt;Constructs a font object with the specified &lt;tt&gt;family&lt;/tt&gt;, &lt;tt&gt;pointSize&lt;/tt&gt;, &lt;tt&gt;weight&lt;/tt&gt; and &lt;tt&gt;italic&lt;/tt&gt; settings.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;pointSize&lt;/tt&gt; is &amp;lt;= 0, it is set to 12.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;family&lt;/tt&gt; name may optionally also include a foundry name, e.g&amp;#x2e; &amp;quot;Helvetica [Cronyx]&amp;quot;. If the &lt;tt&gt;family&lt;/tt&gt; is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;Weight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setFamily(java.lang.String)&quot;&gt;&lt;tt&gt;setFamily&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setWeight(int)&quot;&gt;&lt;tt&gt;setWeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setItalic(boolean)&quot;&gt;&lt;tt&gt;setItalic&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::font&lt;/tt&gt; */"/>
    <method name="public QFont(java.lang.String family, int pointSize, int weight)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;family&lt;/tt&gt;, &lt;tt&gt;pointSize&lt;/tt&gt;, &lt;tt&gt;weight&lt;/tt&gt;, false). */"/>
    <method name="public QFont(java.lang.String family, int pointSize)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;family&lt;/tt&gt;, &lt;tt&gt;pointSize&lt;/tt&gt;, -1, false). */"/>
    <method name="public QFont(java.lang.String family)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;family&lt;/tt&gt;, -1, -1, false). */"/>
    <method name="public QFont()" doc="/**
&lt;p&gt;Constructs a font object that uses the application's default font.&lt;/p&gt;

@see &lt;tt&gt;QApplication::setFont&lt;/tt&gt;
@see &lt;tt&gt;QApplication::font&lt;/tt&gt; */"/>
    <method name="public QFont(com.trolltech.qt.gui.QFont arg__1, com.trolltech.qt.gui.QPaintDeviceInterface pd)" doc="/**
&lt;p&gt;Constructs a font from &lt;tt&gt;arg__1&lt;/tt&gt; for use on the paint device &lt;tt&gt;pd&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean bold()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QFont.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt; is a value greater than &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;QFont::Normal&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setBold(boolean)&quot;&gt;&lt;tt&gt;setBold&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFontInfo::bold&lt;/tt&gt; */"/>
    <method name="public final java.lang.String defaultFamily()" doc="/**
&lt;p&gt;Returns the family name that corresponds to the current style hint.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#StyleHint-enum&quot;&gt;&lt;tt&gt;StyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#styleHint()&quot;&gt;&lt;tt&gt;styleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean exactMatch()" doc="/**
&lt;p&gt;Returns true if a window system font exactly matching the settings of this font is available.&lt;/p&gt;

@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String family()" doc="/**
&lt;p&gt;Returns the requested font family name, i.e&amp;#x2e; the name set in the constructor or the last setFont() call.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setFamily(java.lang.String)&quot;&gt;&lt;tt&gt;setFamily&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitutes(java.lang.String)&quot;&gt;&lt;tt&gt;substitutes&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean fixedPitch()" doc="/**
&lt;p&gt;Returns true if fixed pitch has been set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setFixedPitch(boolean)&quot;&gt;&lt;tt&gt;setFixedPitch&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFontInfo::fixedPitch&lt;/tt&gt; */"/>
    <method name="public final boolean fromString(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets this font to match the description &lt;tt&gt;arg__1&lt;/tt&gt;. The description is a comma-separated list of the font attributes, as returned by &lt;a href=&quot;QFont.html#toString()&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#toString()&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long handle()" doc="/**
&lt;p&gt;Returns the window system handle to the font, for low-level access. Using this function is &lt;i&gt;not&lt;/i&gt; portable.&lt;/p&gt;
 */"/>
    <method name="public final boolean isCopyOf(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Returns true if this font and &lt;tt&gt;arg__1&lt;/tt&gt; are copies of each other, i.e&amp;#x2e; one of them was created as a copy of the other and neither has been modified since. This is much stricter than equality.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt;
@see &lt;tt&gt;operator==&lt;/tt&gt; */"/>
    <method name="public final boolean italic()" doc="/**
&lt;p&gt;Returns true if the &lt;a href=&quot;QFont.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt; of the font is not QFont::StyleNormal&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setItalic(boolean)&quot;&gt;&lt;tt&gt;setItalic&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean kerning()" doc="/**
&lt;p&gt;Returns true if kerning should be used when drawing text with this font.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setKerning(boolean)&quot;&gt;&lt;tt&gt;setKerning&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String key()" doc="/**
&lt;p&gt;Returns the font's key, a textual representation of a font. It is typically used as the key for a cache or dictionary of fonts.&lt;/p&gt;

@see &lt;tt&gt;QMap&lt;/tt&gt; */"/>
    <method name="public final java.lang.String lastResortFamily()" doc="/**
&lt;p&gt;Returns the &amp;quot;last resort&amp;quot; font family name.&lt;/p&gt;
&lt;p&gt;The current implementation tries a wide variety of common fonts, returning the first one it finds. Is is possible that no family is found in which case an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#lastResortFont()&quot;&gt;&lt;tt&gt;lastResortFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String lastResortFont()" doc="/**
&lt;p&gt;Returns a &amp;quot;last resort&amp;quot; font name for the font matching algorithm. This is used if the last resort family is not available. It will always return a name, if necessary returning something like &amp;quot;fixed&amp;quot; or &amp;quot;system&amp;quot;.&lt;/p&gt;
&lt;p&gt;The current implementation tries a wide variety of common fonts, returning the first one it finds. The implementation may change at any time, but this function will always return a string containing something.&lt;/p&gt;
&lt;p&gt;It is theoretically possible that there really isn't a &lt;a href=&quot;QFont.html#lastResortFont()&quot;&gt;&lt;tt&gt;lastResortFont&lt;/tt&gt;&lt;/a&gt; in which case Qt will abort with an error message. We have not been able to identify a case where this happens. Please &lt;a href=&quot;%2E%2E/bughowto.html&quot;&gt;report it as a bug&lt;/tt&gt;&lt;/a&gt; if it does, preferably with a list of the fonts you have installed.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#lastResortFamily()&quot;&gt;&lt;tt&gt;lastResortFamily&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#rawName()&quot;&gt;&lt;tt&gt;rawName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final boolean overline()" doc="/**
&lt;p&gt;Returns true if overline has been set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setOverline(boolean)&quot;&gt;&lt;tt&gt;setOverline&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int pixelSize()" doc="/**
&lt;p&gt;Returns the pixel size of the font if it was set with &lt;a href=&quot;QFont.html#setPixelSize(int)&quot;&gt;&lt;tt&gt;setPixelSize&lt;/tt&gt;&lt;/a&gt;. Returns -1 if the size was set with &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QFont.html#setPointSizeF(double)&quot;&gt;&lt;tt&gt;setPointSizeF&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setPixelSize(int)&quot;&gt;&lt;tt&gt;setPixelSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFontInfo::pointSize&lt;/tt&gt;
@see &lt;tt&gt;QFontInfo::pixelSize&lt;/tt&gt; */"/>
    <method name="public final int pointSize()" doc="/**
&lt;p&gt;Returns the point size of the font. Returns -1 if the font size was specified in pixels.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#pointSizeF()&quot;&gt;&lt;tt&gt;pointSizeF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double pointSizeF()" doc="/**
&lt;p&gt;Returns the point size of the font. Returns -1 if the font size was specified in pixels.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setPointSizeF(double)&quot;&gt;&lt;tt&gt;setPointSizeF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#pixelSize()&quot;&gt;&lt;tt&gt;pixelSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFontInfo::pointSize&lt;/tt&gt;
@see &lt;tt&gt;QFontInfo::pixelSize&lt;/tt&gt; */"/>
    <method name="public final boolean rawMode()" doc="/**
&lt;p&gt;Returns true if raw mode is used for font name matching; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setRawMode(boolean)&quot;&gt;&lt;tt&gt;setRawMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#rawName()&quot;&gt;&lt;tt&gt;rawName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String rawName()" doc="/**
&lt;p&gt;Returns the name of the font within the underlying window system.&lt;/p&gt;
&lt;p&gt;On Windows and Mac OS X, this is usually just the family name of a TrueType font.&lt;/p&gt;
&lt;p&gt;On X11, depending on whether Qt was built with FontConfig support, it is an XLFD (X Logical Font Description) or a FontConfig pattern. An XLFD may be returned even if FontConfig support is enabled.&lt;/p&gt;
&lt;p&gt;Using the return value of this function is usually &lt;i&gt;not&lt;/i&gt; &lt;i&gt;portable&lt;/i&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setRawName(java.lang.String)&quot;&gt;&lt;tt&gt;setRawName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int resolve()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final void resolve(int mask)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QFont resolve(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Returns a new &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; that has attributes copied from &lt;tt&gt;arg__1&lt;/tt&gt; that have not been previously set on this font.&lt;/p&gt;
 */"/>
    <method name="public final void setBold(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true sets the font's weight to &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;QFont::Bold&lt;/tt&gt;&lt;/a&gt;; otherwise sets the weight to &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;QFont::Normal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For finer boldness control use &lt;a href=&quot;QFont.html#setWeight(int)&quot;&gt;&lt;tt&gt;setWeight&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#bold()&quot;&gt;&lt;tt&gt;bold&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setWeight(int)&quot;&gt;&lt;tt&gt;setWeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFamily(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the family name of the font. The name is case insensitive and may include a foundry name.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;arg__1&lt;/tt&gt; name may optionally also include a foundry name, e.g&amp;#x2e; &amp;quot;Helvetica [Cronyx]&amp;quot;. If the &lt;tt&gt;arg__1&lt;/tt&gt; is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#family()&quot;&gt;&lt;tt&gt;family&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFixedPitch(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true, sets fixed pitch on; otherwise sets fixed pitch off.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#fixedPitch()&quot;&gt;&lt;tt&gt;fixedPitch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setItalic(boolean b)" doc="/**
&lt;p&gt;Sets the &lt;a href=&quot;QFont.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt; of the font to QFont::StyleItalic if &lt;tt&gt;b&lt;/tt&gt; is true; otherwise the style is set to QFont::StyleNormal.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#italic()&quot;&gt;&lt;tt&gt;italic&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setKerning(boolean arg__1)" doc="/**
&lt;p&gt;Enables kerning for this font if &lt;tt&gt;arg__1&lt;/tt&gt; is true; otherwise disables it. By default, kerning is enabled.&lt;/p&gt;
&lt;p&gt;When kerning is enabled, glyph metrics do not add up anymore, even for Latin text. In other words, the assumption that width('a') + width('b') is equal to width(&amp;quot;ab&amp;quot;) is not neccesairly true.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#kerning()&quot;&gt;&lt;tt&gt;kerning&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOverline(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true, sets overline on; otherwise sets overline off.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#overline()&quot;&gt;&lt;tt&gt;overline&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPixelSize(int arg__1)" doc="/**
&lt;p&gt;Sets the font size to &lt;tt&gt;arg__1&lt;/tt&gt; pixels.&lt;/p&gt;
&lt;p&gt;Using this function makes the font device dependent. Use &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QFont.html#setPointSizeF(double)&quot;&gt;&lt;tt&gt;setPointSizeF&lt;/tt&gt;&lt;/a&gt; to set the size of the font in a device independent manner.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#pixelSize()&quot;&gt;&lt;tt&gt;pixelSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPointSize(int arg__1)" doc="/**
&lt;p&gt;Sets the point size to &lt;tt&gt;arg__1&lt;/tt&gt;. The point size must be greater than zero.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setPointSizeF(double)&quot;&gt;&lt;tt&gt;setPointSizeF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPointSizeF(double arg__1)" doc="/**
&lt;p&gt;Sets the point size to &lt;tt&gt;arg__1&lt;/tt&gt;. The point size must be greater than zero. The requested precision may not be achieved on all platforms.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#pointSizeF()&quot;&gt;&lt;tt&gt;pointSizeF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setPointSize(int)&quot;&gt;&lt;tt&gt;setPointSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setPixelSize(int)&quot;&gt;&lt;tt&gt;setPixelSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRawMode(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true, turns raw mode on; otherwise turns raw mode off. This function only has an effect under X11.&lt;/p&gt;
&lt;p&gt;If raw mode is enabled, Qt will search for an X font with a complete font name matching the family name, ignoring all other values set for the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;. If the font name matches several fonts, Qt will use the first font returned by X. &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; &lt;i&gt;cannot&lt;/i&gt; be used to fetch information about a &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; using raw mode (it will return the values set in the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; for all parameters, including the family name).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not use raw mode unless you really, really need it! In most (if not all) cases, &lt;a href=&quot;QFont.html#setRawName(java.lang.String)&quot;&gt;&lt;tt&gt;setRawName&lt;/tt&gt;&lt;/a&gt; is a much better choice.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#rawMode()&quot;&gt;&lt;tt&gt;rawMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setRawName(java.lang.String)&quot;&gt;&lt;tt&gt;setRawName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRawName(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets a font by its system specific name. The function is particularly useful under X, where system font settings (for example X resources) are usually available in XLFD (X Logical Font Description) form only. You can pass an XLFD as &lt;tt&gt;arg__1&lt;/tt&gt; to this function.&lt;/p&gt;
&lt;p&gt;A font set with &lt;a href=&quot;QFont.html#setRawName(java.lang.String)&quot;&gt;&lt;tt&gt;setRawName&lt;/tt&gt;&lt;/a&gt; is still a full-featured &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;. It can be queried (for example with &lt;a href=&quot;QFont.html#italic()&quot;&gt;&lt;tt&gt;italic&lt;/tt&gt;&lt;/a&gt;) or modified (for example with &lt;a href=&quot;QFont.html#setItalic(boolean)&quot;&gt;&lt;tt&gt;setItalic&lt;/tt&gt;&lt;/a&gt;) and is therefore also suitable for rendering rich text.&lt;/p&gt;
&lt;p&gt;If Qt's internal font database cannot resolve the raw name, the font becomes a raw font with &lt;tt&gt;arg__1&lt;/tt&gt; as its family.&lt;/p&gt;
&lt;p&gt;Note that the present implementation does not handle wildcards in XLFDs well, and that font aliases (file &lt;tt&gt;fonts.alias&lt;/tt&gt; in the font directory on X11) are not supported.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#rawName()&quot;&gt;&lt;tt&gt;rawName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setRawMode(boolean)&quot;&gt;&lt;tt&gt;setRawMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setFamily(java.lang.String)&quot;&gt;&lt;tt&gt;setFamily&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStretch(int arg__1)" doc="/**
&lt;p&gt;Sets the stretch factor for the font.&lt;/p&gt;
&lt;p&gt;The stretch factor changes the width of all characters in the font by &lt;tt&gt;arg__1&lt;/tt&gt; percent. For example, setting &lt;tt&gt;arg__1&lt;/tt&gt; to 150 results in all characters in the font being 1.5 times (ie. 150%) wider. The default stretch factor is 100. The minimum stretch factor is 1, and the maximum stretch factor is 4000.&lt;/p&gt;
&lt;p&gt;The stretch factor is only applied to outline fonts. The stretch factor is ignored for bitmap fonts.&lt;/p&gt;
&lt;p&gt;NOTE: &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; cannot stretch XLFD fonts. When loading XLFD fonts on X11, the stretch factor is matched against a predefined set of values for the SETWIDTH_NAME field of the XLFD.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#stretch()&quot;&gt;&lt;tt&gt;stretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::Stretch&lt;/tt&gt; */"/>
    <method name="public final void setStrikeOut(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true, sets strikeout on; otherwise sets strikeout off.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#strikeOut()&quot;&gt;&lt;tt&gt;strikeOut&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStyle(com.trolltech.qt.gui.QFont.Style style)" doc="/**
&lt;p&gt;Sets the style of the font to &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#italic()&quot;&gt;&lt;tt&gt;italic&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStyleHint(com.trolltech.qt.gui.QFont.StyleHint arg__1, com.trolltech.qt.gui.QFont.StyleStrategy arg__2)" doc="/**
&lt;p&gt;Sets the style hint and strategy to &lt;tt&gt;arg__1&lt;/tt&gt; and &lt;tt&gt;arg__2&lt;/tt&gt;, respectively.&lt;/p&gt;
&lt;p&gt;If these aren't set explicitly the style hint will default to &lt;tt&gt;AnyStyle&lt;/tt&gt; and the style strategy to &lt;tt&gt;PreferDefault&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Qt does not support style hints on X11 since this information is not provided by the window system.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#StyleHint-enum&quot;&gt;&lt;tt&gt;StyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#styleHint()&quot;&gt;&lt;tt&gt;styleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#StyleStrategy-enum&quot;&gt;&lt;tt&gt;StyleStrategy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#styleStrategy()&quot;&gt;&lt;tt&gt;styleStrategy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStyleHint(com.trolltech.qt.gui.QFont.StyleHint arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, PreferDefault). */"/>
    <method name="public final void setStyleStrategy(com.trolltech.qt.gui.QFont.StyleStrategy s)" doc="/**
&lt;p&gt;Sets the style strategy for the font to &lt;tt&gt;s&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#styleStrategy()&quot;&gt;&lt;tt&gt;styleStrategy&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::StyleStrategy&lt;/tt&gt; */"/>
    <method name="public final void setUnderline(boolean arg__1)" doc="/**
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is true, sets underline on; otherwise sets underline off.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#underline()&quot;&gt;&lt;tt&gt;underline&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWeight(int arg__1)" doc="/**
&lt;p&gt;Sets the weight the font to &lt;tt&gt;arg__1&lt;/tt&gt;, which should be a value from the &lt;tt&gt;QFont::Weight&lt;/tt&gt; enumeration.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int stretch()" doc="/**
&lt;p&gt;Returns the stretch factor for the font.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStretch(int)&quot;&gt;&lt;tt&gt;setStretch&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean strikeOut()" doc="/**
&lt;p&gt;Returns true if strikeout has been set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStrikeOut(boolean)&quot;&gt;&lt;tt&gt;setStrikeOut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont.Style style()" doc="/**
&lt;p&gt;Returns the style of the font.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStyle(com.trolltech.qt.gui.QFont.Style)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont.StyleHint styleHint()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QFont.html#StyleHint-enum&quot;&gt;&lt;tt&gt;StyleHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The style hint affects the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm. See &lt;tt&gt;QFont::StyleHint&lt;/tt&gt; for the list of available hints.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::StyleStrategy&lt;/tt&gt;
@see &lt;tt&gt;QFontInfo::styleHint&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont.StyleStrategy styleStrategy()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QFont.html#StyleStrategy-enum&quot;&gt;&lt;tt&gt;StyleStrategy&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The style strategy affects the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm. See &lt;tt&gt;QFont::StyleStrategy&lt;/tt&gt; for the list of available strategies.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStyleStrategy(com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleStrategy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#setStyleHint(com.trolltech.qt.gui.QFont.StyleHint, com.trolltech.qt.gui.QFont.StyleStrategy)&quot;&gt;&lt;tt&gt;setStyleHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::StyleHint&lt;/tt&gt; */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Returns a description of the font. The description is a comma-separated list of the attributes, perfectly suited for use in &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#fromString(java.lang.String)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean underline()" doc="/**
&lt;p&gt;Returns true if underline has been set; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setUnderline(boolean)&quot;&gt;&lt;tt&gt;setUnderline&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int weight()" doc="/**
&lt;p&gt;Returns the weight of the font which is one of the enumerated values from &lt;tt&gt;QFont::Weight&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setWeight(int)&quot;&gt;&lt;tt&gt;setWeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;Weight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontInfo.html&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void cacheStatistics()"/>
    <method name="public native static void cleanup()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public native static void initialize()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public native static void insertSubstitution(java.lang.String arg__1, java.lang.String arg__2)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;arg__2&lt;/tt&gt; into the substitution table for the family &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#insertSubstitutions(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;insertSubstitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitutions()&quot;&gt;&lt;tt&gt;substitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitutes(java.lang.String)&quot;&gt;&lt;tt&gt;substitutes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void insertSubstitutions(java.lang.String arg__1, java.util.List&lt;java.lang.String&gt; arg__2)" doc="/**
&lt;p&gt;Inserts the list of families &lt;tt&gt;arg__2&lt;/tt&gt; into the substitution list for &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitutions()&quot;&gt;&lt;tt&gt;substitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void removeSubstitution(java.lang.String arg__1)" doc="/**
&lt;p&gt;Removes all the substitutions for &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#insertSubstitutions(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;insertSubstitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitutions()&quot;&gt;&lt;tt&gt;substitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String substitute(java.lang.String arg__1)" doc="/**
&lt;p&gt;Returns the first family name to be used whenever &lt;tt&gt;arg__1&lt;/tt&gt; is specified. The lookup is case insensitive.&lt;/p&gt;
&lt;p&gt;If there is no substitution for &lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;arg__1&lt;/tt&gt; is returned.&lt;/p&gt;
&lt;p&gt;To obtain a list of substitutions use &lt;a href=&quot;QFont.html#substitutes(java.lang.String)&quot;&gt;&lt;tt&gt;substitutes&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setFamily(java.lang.String)&quot;&gt;&lt;tt&gt;setFamily&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#insertSubstitutions(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;insertSubstitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; substitutes(java.lang.String arg__1)" doc="/**
&lt;p&gt;Returns a list of family names to be used whenever &lt;tt&gt;arg__1&lt;/tt&gt; is specified. The lookup is case insensitive.&lt;/p&gt;
&lt;p&gt;If there is no substitution for &lt;tt&gt;arg__1&lt;/tt&gt;, an empty list is returned.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#insertSubstitutions(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;insertSubstitutions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; substitutions()" doc="/**
&lt;p&gt;Returns a sorted list of substituted family names.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#insertSubstitution(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;insertSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#removeSubstitution(java.lang.String)&quot;&gt;&lt;tt&gt;removeSubstitution&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#substitute(java.lang.String)&quot;&gt;&lt;tt&gt;substitute&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="StyleStrategy" doc="/**
&lt;p&gt;The style strategy tells the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm what type of fonts should be used to find an appropriate default family.&lt;/p&gt;
&lt;p&gt;The following strategies are available:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferDefault&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;the default style strategy. It does not prefer any type of font.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferBitmap&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;prefers bitmap fonts (as opposed to outline fonts).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferDevice&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;prefers device fonts.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferOutline&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;prefers outline fonts (as opposed to bitmap fonts).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;ForceOutline&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;forces the use of outline fonts.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoAntialias&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;256&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;don't antialias the fonts.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferAntialias&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;128&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;antialias if possible.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;OpenGLCompatible&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;512&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;forces the use of OpenGL compatible fonts.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoFontMerging&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32768&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;If a font does not contain a character requested to draw then Qt automatically chooses a similar looking for that contains the character. This flag disables this feature.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Any of these may be OR-ed with one of these flags:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferMatch&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;prefer an exact match. The font matcher will try to use the exact font size that has been specified.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;PreferQuality&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;64&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;prefer the best quality font. The font matcher will use the nearest standard point size that the font supports.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="PreferDefault" doc="/**
&lt;p&gt;the default style strategy. It does not prefer any type of font.&lt;/p&gt;
 */"/>
        <enum-value name="PreferBitmap" doc="/**
&lt;p&gt;prefers bitmap fonts (as opposed to outline fonts).&lt;/p&gt;
 */"/>
        <enum-value name="PreferDevice" doc="/**
&lt;p&gt;prefers device fonts.&lt;/p&gt;
 */"/>
        <enum-value name="PreferOutline" doc="/**
&lt;p&gt;prefers outline fonts (as opposed to bitmap fonts).&lt;/p&gt;
 */"/>
        <enum-value name="ForceOutline" doc="/**
&lt;p&gt;forces the use of outline fonts.&lt;/p&gt;
 */"/>
        <enum-value name="PreferMatch" doc="/**
&lt;p&gt;prefer an exact match. The font matcher will try to use the exact font size that has been specified.&lt;/p&gt;
 */"/>
        <enum-value name="PreferQuality" doc="/**
&lt;p&gt;prefer the best quality font. The font matcher will use the nearest standard point size that the font supports.&lt;/p&gt;
 */"/>
        <enum-value name="PreferAntialias" doc="/**
&lt;p&gt;antialias if possible.&lt;/p&gt;
 */"/>
        <enum-value name="NoAntialias" doc="/**
&lt;p&gt;don't antialias the fonts.&lt;/p&gt;
 */"/>
        <enum-value name="OpenGLCompatible" doc="/**
&lt;p&gt;forces the use of OpenGL compatible fonts.&lt;/p&gt;
 */"/>
        <enum-value name="NoFontMerging" doc="/**
&lt;p&gt;If a font does not contain a character requested to draw then Qt automatically chooses a similar looking for that contains the character. This flag disables this feature.&lt;/p&gt;
 */"/>
</enum>
    <enum name="StyleHint" doc="/**
&lt;p&gt;Style hints are used by the &lt;a href=&quot;QFont.html#QFont(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)&quot;&gt;font matching&lt;/tt&gt;&lt;/a&gt; algorithm to find an appropriate default family if a selected font family is not available.&lt;/p&gt;
 */">
        <enum-value name="Helvetica" doc="/**
&lt;p&gt;is a synonym for &lt;tt&gt;SansSerif&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="SansSerif" doc="/**
&lt;p&gt;the font matcher prefer sans serif fonts.&lt;/p&gt;
 */"/>
        <enum-value name="Times" doc="/**
&lt;p&gt;is a synonym for &lt;tt&gt;Serif&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Serif" doc="/**
&lt;p&gt;the font matcher prefers serif fonts.&lt;/p&gt;
 */"/>
        <enum-value name="Courier" doc="/**
&lt;p&gt;a synonym for &lt;tt&gt;TypeWriter&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="TypeWriter" doc="/**
&lt;p&gt;the font matcher prefers fixed pitch fonts.&lt;/p&gt;
 */"/>
        <enum-value name="OldEnglish" doc="/**
&lt;p&gt;the font matcher prefers decorative fonts.&lt;/p&gt;
 */"/>
        <enum-value name="Decorative" doc="/**
&lt;p&gt;is a synonym for &lt;tt&gt;OldEnglish&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="System" doc="/**
&lt;p&gt;the font matcher prefers system fonts.&lt;/p&gt;
 */"/>
        <enum-value name="AnyStyle" doc="/**
&lt;p&gt;leaves the font matching algorithm to choose the family. This is the default.&lt;/p&gt;
 */"/>
</enum>
    <enum name="Weight" doc="/**
&lt;p&gt;Qt uses a weighting scale from 0 to 99 similar to, but not the same as, the scales used in Windows or CSS. A weight of 0 is ultralight, whilst 99 will be an extremely black.&lt;/p&gt;
&lt;p&gt;This enum contains the predefined font weights:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Light&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;25&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;25&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Normal&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;50&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;50&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;DemiBold&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;63&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;63&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Bold&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;75&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;75&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Black&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;87&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;87&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="Light" doc="/**
&lt;p&gt;25&lt;/p&gt;
 */"/>
        <enum-value name="Normal" doc="/**
&lt;p&gt;50&lt;/p&gt;
 */"/>
        <enum-value name="DemiBold" doc="/**
&lt;p&gt;63&lt;/p&gt;
 */"/>
        <enum-value name="Bold" doc="/**
&lt;p&gt;75&lt;/p&gt;
 */"/>
        <enum-value name="Black" doc="/**
&lt;p&gt;87&lt;/p&gt;
 */"/>
</enum>
    <enum name="Stretch" doc="/**
&lt;p&gt;Predefined stretch values that follow the CSS naming convention. The higher the value, the more stretched the text is.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#setStretch(int)&quot;&gt;&lt;tt&gt;setStretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html#stretch()&quot;&gt;&lt;tt&gt;stretch&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="UltraCondensed" doc="/**
&lt;p&gt;50&lt;/p&gt;
 */"/>
        <enum-value name="ExtraCondensed" doc="/**
&lt;p&gt;62&lt;/p&gt;
 */"/>
        <enum-value name="Condensed" doc="/**
&lt;p&gt;75&lt;/p&gt;
 */"/>
        <enum-value name="SemiCondensed" doc="/**
&lt;p&gt;87&lt;/p&gt;
 */"/>
        <enum-value name="Unstretched" doc="/**
&lt;p&gt;100&lt;/p&gt;
 */"/>
        <enum-value name="SemiExpanded" doc="/**
&lt;p&gt;112&lt;/p&gt;
 */"/>
        <enum-value name="Expanded" doc="/**
&lt;p&gt;125&lt;/p&gt;
 */"/>
        <enum-value name="ExtraExpanded" doc="/**
&lt;p&gt;150&lt;/p&gt;
 */"/>
        <enum-value name="UltraExpanded" doc="/**
&lt;p&gt;200&lt;/p&gt;
 */"/>
</enum>
    <enum name="Style" doc="/**
&lt;p&gt;This enum describes the different styles of glyphs that are used to display text.&lt;/p&gt;

@see &lt;a href=&quot;QFont.html#Weight-enum&quot;&gt;Weight&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="StyleNormal" doc="/**
&lt;p&gt;Normal glyphs used in unstyled text.&lt;/p&gt;
 */"/>
        <enum-value name="StyleItalic" doc="/**
&lt;p&gt;Italic glyphs that are specifically designed for the purpose of representing italicized text.&lt;/p&gt;
 */"/>
        <enum-value name="StyleOblique" doc="/**
&lt;p&gt;Glyphs with an italic appearance that are typically based on the unstyled glyphs, but are not fine-tuned for the purpose of representing italicized text.&lt;/p&gt;
 */"/>
</enum>
</class>
