<class name="QFontMetricsF" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)&quot;&gt;&lt;tt&gt;QFontMetricsF&lt;/tt&gt;&lt;/a&gt; class provides font metrics information.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)&quot;&gt;&lt;tt&gt;QFontMetricsF&lt;/tt&gt;&lt;/a&gt; functions calculate the size of characters and strings for a given font. You can construct a &lt;a href=&quot;QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)&quot;&gt;&lt;tt&gt;QFontMetricsF&lt;/tt&gt;&lt;/a&gt; object with an existing &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; to obtain metrics for that font. If the font is changed later, the font metrics object is &lt;i&gt;not&lt;/i&gt; updated.&lt;/p&gt;
&lt;p&gt;Once created, the object provides functions to access the individual metrics of the font, its characters, and for strings rendered in the font.&lt;/p&gt;
&lt;p&gt;There are several functions that operate on the font: &lt;a href=&quot;QFontMetricsF.html#ascent()&quot;&gt;&lt;tt&gt;ascent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#descent()&quot;&gt;&lt;tt&gt;descent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetricsF.html#lineSpacing()&quot;&gt;&lt;tt&gt;lineSpacing&lt;/tt&gt;&lt;/a&gt; return the basic size properties of the font. The &lt;a href=&quot;QFontMetricsF.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetricsF.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; functions, return the properties of the line that underlines, overlines or strikes out the characters. These functions are all fast.&lt;/p&gt;
&lt;p&gt;There are also some functions that operate on the set of glyphs in the font: &lt;a href=&quot;QFontMetricsF.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetricsF.html#maxWidth()&quot;&gt;&lt;tt&gt;maxWidth&lt;/tt&gt;&lt;/a&gt;. These are by necessity slow, and we recommend avoiding them if possible.&lt;/p&gt;
&lt;p&gt;For each character, you can get its &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetricsF.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetricsF.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt; and find out whether it is in the font using &lt;a href=&quot;QFontMetricsF.html#inFont(char)&quot;&gt;&lt;tt&gt;inFont&lt;/tt&gt;&lt;/a&gt;. You can also treat the character as a string, and use the string functions on it.&lt;/p&gt;
&lt;p&gt;The string functions include &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, to return the width of a string in pixels (or points, for a printer), &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;, to return a rectangle large enough to contain the rendered string, and size(), to return the size of that rectangle.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QFont font(&amp;quot;times&amp;quot;, 24);
    QFontMetricsF fm(font);
    qreal pixelsWide = fm.width(&amp;quot;What's the width of this text?&amp;quot;);
    qreal pixelsHigh = fm.height();&lt;/pre&gt;

@see &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&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; */">
    <method name="public QFontMetricsF(com.trolltech.qt.gui.QFont arg__1, com.trolltech.qt.gui.QPaintDeviceInterface pd)" doc="/**
&lt;p&gt;Constructs a font metrics object for &lt;tt&gt;arg__1&lt;/tt&gt; and &lt;tt&gt;pd&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The font metrics will be compatible with the paintdevice passed. If the &lt;tt&gt;pd&lt;/tt&gt; is 0, the metrics will be screen-compatible, ie. the metrics you get if you use the font for drawing text on a &lt;a href=&quot;QWidget.html&quot;&gt;widgets&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QPixmap.html&quot;&gt;pixmaps&lt;/tt&gt;&lt;/a&gt;, not on a &lt;a href=&quot;QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The font metrics object holds the information for the font that is passed in the constructor at the time it is created, and is not updated if the font's attributes are changed later.&lt;/p&gt;
 */"/>
    <method name="public QFontMetricsF(com.trolltech.qt.gui.QFontMetrics arg__1)" doc="/**
&lt;p&gt;Constructs a font metrics object with floating point precision from the given &lt;tt&gt;arg__1&lt;/tt&gt; object.&lt;/p&gt;
 */"/>
    <method name="public QFontMetricsF(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Constructs a font metrics object for &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The font metrics will be compatible with the paintdevice used to create &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The font metrics object holds the information for the font that is passed in the constructor at the time it is created, and is not updated if the font's attributes are changed later.&lt;/p&gt;
&lt;p&gt;Use &lt;a href=&quot;QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)&quot;&gt;&lt;tt&gt;QFontMetricsF&lt;/tt&gt;&lt;/a&gt;(const &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; &amp;amp;, &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt; *) to get the font metrics that are compatible with a certain paint device.&lt;/p&gt;
 */"/>
    <method name="public QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF arg__1)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final double ascent()" doc="/**
&lt;p&gt;Returns the ascent of the font.&lt;/p&gt;
&lt;p&gt;The ascent of a font is the distance from the baseline to the highest position characters extend to. In practice, some font designers break this rule, e.g&amp;#x2e; when they put more than one accent on top of a character, or to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#descent()&quot;&gt;&lt;tt&gt;descent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double averageCharWidth()" doc="/**
&lt;p&gt;Returns the average width of glyphs in the font.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect(java.lang.String string)" doc="/**
&lt;p&gt;Returns the bounding rectangle of the characters in the string specified by &lt;tt&gt;string&lt;/tt&gt;. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).&lt;/p&gt;
&lt;p&gt;Note that the bounding rectangle may extend to the left of (0, 0), e.g&amp;#x2e; for italicized fonts, and that the width of the returned rectangle might be different than what the &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; method returns.&lt;/p&gt;
&lt;p&gt;If you want to know the advance width of the string (to layout a set of strings next to each other), use &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;Newline characters are processed as normal characters, &lt;i&gt;not&lt;/i&gt; as linebreaks.&lt;/p&gt;
&lt;p&gt;The height of the bounding rectangle is at least as large as the value returned &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainter::boundingRect&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect(char arg__1)" doc="/**
&lt;p&gt;Returns the bounding rectangle of the character &lt;tt&gt;arg__1&lt;/tt&gt; relative to the left-most point on the base line.&lt;/p&gt;
&lt;p&gt;Note that the bounding rectangle may extend to the left of (0, 0), e.g&amp;#x2e; for italicized fonts, and that the text output may cover &lt;i&gt;all&lt;/i&gt; pixels in the bounding rectangle.&lt;/p&gt;
&lt;p&gt;Note that the rectangle usually extends both above and below the base line.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double descent()" doc="/**
&lt;p&gt;Returns the descent of the font.&lt;/p&gt;
&lt;p&gt;The descent is the distance from the base line to the lowest point characters extend to. (Note that this is different from X, which adds 1 pixel.) In practice, some font designers break this rule, e.g&amp;#x2e; to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#ascent()&quot;&gt;&lt;tt&gt;ascent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String elidedText(java.lang.String text, com.trolltech.qt.core.Qt.TextElideMode mode, double width, int flags)" doc="/**
&lt;p&gt;If the string &lt;tt&gt;text&lt;/tt&gt; is wider than &lt;tt&gt;width&lt;/tt&gt;, returns an elided version of the string (i.e&amp;#x2e;, a string with &amp;quot;..&amp;#x2e;&amp;quot; in it). Otherwise, returns the original string.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;mode&lt;/tt&gt; parameter specifies whether the text is elided on the left (e.g&amp;#x2e;, &amp;quot;..&amp;#x2e;tech&amp;quot;), in the middle (e.g&amp;#x2e;, &amp;quot;Tr..&amp;#x2e;ch&amp;quot;), or on the right (e.g&amp;#x2e;, &amp;quot;Trol..&amp;#x2e;&amp;quot;).&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;width&lt;/tt&gt; is specified in pixels, not characters.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;flags&lt;/tt&gt; argument is optional and currently only supports Qt::TextShowMnemonic as value.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String elidedText(java.lang.String text, com.trolltech.qt.core.Qt.TextElideMode mode, double width)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFontMetricsF.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double, int)&quot;&gt;&lt;tt&gt;elidedText&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, &lt;tt&gt;width&lt;/tt&gt;, 0). */"/>
    <method name="public final double height()" doc="/**
&lt;p&gt;Returns the height of the font.&lt;/p&gt;
&lt;p&gt;This is always equal to &lt;a href=&quot;QFontMetricsF.html#ascent()&quot;&gt;&lt;tt&gt;ascent&lt;/tt&gt;&lt;/a&gt;+&lt;a href=&quot;QFontMetricsF.html#descent()&quot;&gt;&lt;tt&gt;descent&lt;/tt&gt;&lt;/a&gt;+1 (the 1 is for the base line).&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#lineSpacing()&quot;&gt;&lt;tt&gt;lineSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean inFont(char arg__1)" doc="/**
&lt;p&gt;Returns true if character &lt;tt&gt;arg__1&lt;/tt&gt; is a valid character in the font; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final double leading()" doc="/**
&lt;p&gt;Returns the leading of the font.&lt;/p&gt;
&lt;p&gt;This is the natural inter-line spacing.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#lineSpacing()&quot;&gt;&lt;tt&gt;lineSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double leftBearing(char arg__1)" doc="/**
&lt;p&gt;Returns the left bearing of character &lt;tt&gt;arg__1&lt;/tt&gt; in the font.&lt;/p&gt;
&lt;p&gt;The left bearing is the right-ward distance of the left-most pixel of the character from the logical origin of the character. This value is negative if the pixels of the character extend to the left of the logical origin.&lt;/p&gt;
&lt;p&gt;See width(QChar) for a graphical description of this metric.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double lineSpacing()" doc="/**
&lt;p&gt;Returns the distance from one base line to the next.&lt;/p&gt;
&lt;p&gt;This value is always equal to &lt;a href=&quot;QFontMetricsF.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt;+&lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double lineWidth()" doc="/**
&lt;p&gt;Returns the width of the underline and strikeout lines, adjusted for the point size of the font.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double maxWidth()" doc="/**
&lt;p&gt;Returns the width of the widest character in the font.&lt;/p&gt;
 */"/>
    <method name="public final double minLeftBearing()" doc="/**
&lt;p&gt;Returns the minimum left bearing of the font.&lt;/p&gt;
&lt;p&gt;This is the smallest &lt;a href=&quot;QFontMetricsF.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt;(char) of all characters in the font.&lt;/p&gt;
&lt;p&gt;Note that this function can be very slow if the font is large.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double minRightBearing()" doc="/**
&lt;p&gt;Returns the minimum right bearing of the font.&lt;/p&gt;
&lt;p&gt;This is the smallest &lt;a href=&quot;QFontMetricsF.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt;(char) of all characters in the font.&lt;/p&gt;
&lt;p&gt;Note that this function can be very slow if the font is large.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double overlinePos()" doc="/**
&lt;p&gt;Returns the distance from the base line to where an overline should be drawn.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double rightBearing(char arg__1)" doc="/**
&lt;p&gt;Returns the right bearing of character &lt;tt&gt;arg__1&lt;/tt&gt; in the font.&lt;/p&gt;
&lt;p&gt;The right bearing is the left-ward distance of the right-most pixel of the character from the logical origin of a subsequent character. This value is negative if the pixels of the character extend to the right of the &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; of the character.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; for a graphical description of this metric.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double strikeOutPos()" doc="/**
&lt;p&gt;Returns the distance from the base line to where the strikeout line should be drawn.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF tightBoundingRect(java.lang.String text)" doc="/**
&lt;p&gt;Returns a tight bounding rectangle around the characters in the string specified by &lt;tt&gt;text&lt;/tt&gt;. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).&lt;/p&gt;
&lt;p&gt;Note that the bounding rectangle may extend to the left of (0, 0), e.g&amp;#x2e; for italicized fonts, and that the width of the returned rectangle might be different than what the &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; method returns.&lt;/p&gt;
&lt;p&gt;If you want to know the advance width of the string (to layout a set of strings next to each other), use &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;Newline characters are processed as normal characters, &lt;i&gt;not&lt;/i&gt; as linebreaks.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling this method is very slow on Windows.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double underlinePos()" doc="/**
&lt;p&gt;Returns the distance from the base line to where an underscore should be drawn.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetricsF.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double width(char arg__1)" doc="/**
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/bearings.png&quot; alt=&quot;Bearings&quot; /&gt;&lt;/p&gt;&lt;p&gt;Returns the logical width of character &lt;tt&gt;arg__1&lt;/tt&gt; in pixels. This is a distance appropriate for drawing a subsequent character after &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Some of the metrics are described in the image to the right. The central dark rectangles cover the logical &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; of each character. The outer pale rectangles cover the &lt;a href=&quot;QFontMetricsF.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetricsF.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt; of each character. Notice that the bearings of &amp;quot;f&amp;quot; in this particular font are both negative, while the bearings of &amp;quot;o&amp;quot; are both positive.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function will produce incorrect results for Arabic characters or non-spacing marks in the middle of a string, as the glyph shaping and positioning of marks that happens when processing strings cannot be taken into account. Use charWidth() instead if you aren't looking for the width of isolated characters.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double width(java.lang.String string)" doc="/**
&lt;p&gt;Returns the width in pixels of the characters in the given &lt;tt&gt;string&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that this value is &lt;i&gt;not&lt;/i&gt; equal to the width returned by &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; because &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; returns a rectangle describing the pixels this string will cover whereas &lt;a href=&quot;QFontMetricsF.html#width(java.lang.String)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; returns the distance to where the next string should be drawn.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetricsF.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double xHeight()" doc="/**
&lt;p&gt;Returns the 'x' height of the font. This is often but not always the same as the height of the character 'x'.&lt;/p&gt;
 */"/>
</class>
