Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2024

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QFontMetrics" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; class provides font metrics information.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; functions calculate the size of characters and strings for a given font. There are three ways you can create a &lt;a href=&quot;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; object:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;Calling the &lt;a href=&quot;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt; constructor with a &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; creates a font metrics object for a screen-compatible font, i.e&amp;#x2e; the font cannot be a printer font. If the font is changed later, the font metrics object is &lt;i&gt;not&lt;/i&gt; updated.&lt;p&gt;(Note: If you use a printer font the values returned may be inaccurate. Printer fonts are not always accessible so the nearest screen font is used if a printer font is supplied.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;QWidget::fontMetrics() returns the font metrics for a widget's font. This is equivalent to &lt;a href=&quot;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt;(widget-&amp;gt;&lt;a href=&quot;%2E%2E/stylesheet-reference.html#font&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;). If the widget's font is changed later, the font metrics object is &lt;i&gt;not&lt;/i&gt; updated.&lt;/li&gt;
&lt;li&gt;QPainter::fontMetrics() returns the font metrics for a painter's current font. If the painter's font is changed later, the font metrics object is &lt;i&gt;not&lt;/i&gt; updated.&lt;/li&gt;
&lt;/ol&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;QFontMetrics.html#ascent()&quot;&gt;&lt;tt&gt;ascent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#descent()&quot;&gt;&lt;tt&gt;descent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetrics.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;QFontMetrics.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetrics.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;QFontMetrics.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetrics.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;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontMetrics.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetrics.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;QFontMetrics.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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.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);
    QFontMetrics fm(font);
    int pixelsWide = fm.width(&amp;quot;What's the width of this text?&amp;quot;);
    int 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;
@see &lt;a href=&quot;QFontComboBox.html&quot;&gt;&lt;tt&gt;QFontComboBox&lt;/tt&gt;&lt;/a&gt;
@see Character Map Example&lt;/tt&gt; */">
    <method name="public QFontMetrics(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 QFontMetrics(com.trolltech.qt.gui.QFontMetrics arg__1)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFontMetrics(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;QFontMetrics.html#QFontMetrics(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontMetrics&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 final int 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;QFontMetrics.html#descent()&quot;&gt;&lt;tt&gt;descent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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.QRect boundingRect(java.lang.String text)" doc="/**
&lt;p&gt;Returns the bounding rectangle of 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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#width(java.lang.String, int)&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 by &lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainter::boundingRect&lt;/tt&gt;
@see &lt;a href=&quot;QFontMetrics.html#tightBoundingRect(java.lang.String)&quot;&gt;&lt;tt&gt;tightBoundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect boundingRect(char arg__1)" doc="/**
&lt;p&gt;Returns the rectangle that is covered by ink if character &lt;tt&gt;arg__1&lt;/tt&gt; were to be drawn at the origin of the coordinate system.&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. For a space character the rectangle will usually be empty.&lt;/p&gt;
&lt;p&gt;Note that the rectangle usually extends both above and below the base line.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The width of the returned rectangle is not the advance width of the character. Use &lt;a href=&quot;QFontMetrics.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;(const &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; &amp;amp;) or &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int charWidth(java.lang.String str, int pos)" doc="/**
&lt;p&gt;Returns the width of the character at position &lt;tt&gt;pos&lt;/tt&gt; in the string &lt;tt&gt;str&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The whole string is needed, as the glyph drawn may change depending on the context (the letter before and after the current one) for some languages (e.g&amp;#x2e; Arabic).&lt;/p&gt;
&lt;p&gt;This function also takes non spacing marks and ligatures into account.&lt;/p&gt;
 */"/>
    <method name="public final int 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;QFontMetrics.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, int 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, int width)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFontMetrics.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, int, 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 int 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;QFontMetrics.html#ascent()&quot;&gt;&lt;tt&gt;ascent&lt;/tt&gt;&lt;/a&gt;+&lt;a href=&quot;QFontMetrics.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;QFontMetrics.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.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 int 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;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#lineSpacing()&quot;&gt;&lt;tt&gt;lineSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt;+&lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#leading()&quot;&gt;&lt;tt&gt;leading&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int maxWidth()" doc="/**
&lt;p&gt;Returns the width of the widest character in the font.&lt;/p&gt;
 */"/>
    <method name="public final int 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;QFontMetrics.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;QFontMetrics.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.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;QFontMetrics.html#minLeftBearing()&quot;&gt;&lt;tt&gt;minLeftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#rightBearing(char)&quot;&gt;&lt;tt&gt;rightBearing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#minRightBearing()&quot;&gt;&lt;tt&gt;minRightBearing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#underlinePos()&quot;&gt;&lt;tt&gt;underlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect 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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#overlinePos()&quot;&gt;&lt;tt&gt;overlinePos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#strikeOutPos()&quot;&gt;&lt;tt&gt;strikeOutPos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#lineWidth()&quot;&gt;&lt;tt&gt;lineWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int 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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#leftBearing(char)&quot;&gt;&lt;tt&gt;leftBearing&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QFontMetrics.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 &lt;a href=&quot;QFontMetrics.html#charWidth(java.lang.String, int)&quot;&gt;&lt;tt&gt;charWidth&lt;/tt&gt;&lt;/a&gt; instead if you aren't looking for the width of isolated characters.&lt;/p&gt;

@see &lt;a href=&quot;QFontMetrics.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontMetrics.html#charWidth(java.lang.String, int)&quot;&gt;&lt;tt&gt;charWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width(java.lang.String arg__1, int len)" doc="/**
&lt;p&gt;Returns the width in pixels of the first &lt;tt&gt;len&lt;/tt&gt; characters of &lt;tt&gt;arg__1&lt;/tt&gt;. If &lt;tt&gt;len&lt;/tt&gt; is negative (the default), the entire string is used.&lt;/p&gt;
&lt;p&gt;Note that this value is &lt;i&gt;not&lt;/i&gt; equal to &lt;a href=&quot;QFontMetrics.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;; &lt;a href=&quot;QFontMetrics.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;QFontMetrics.html#width(java.lang.String, int)&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;QFontMetrics.html#boundingRect(char)&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width(java.lang.String arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFontMetrics.html#width(java.lang.String, int)&quot;&gt;width&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, -1). */"/>
    <method name="public final int 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>