Sophie

Sophie

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

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

<class name="QFontInfo" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; class provides general information about fonts.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; class provides the same access functions as &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;, e.g&amp;#x2e; &lt;a href=&quot;QFontInfo.html#family()&quot;&gt;&lt;tt&gt;family&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontInfo.html#pointSize()&quot;&gt;&lt;tt&gt;pointSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontInfo.html#italic()&quot;&gt;&lt;tt&gt;italic&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontInfo.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontInfo.html#fixedPitch()&quot;&gt;&lt;tt&gt;fixedPitch&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QFontInfo.html#styleHint()&quot;&gt;&lt;tt&gt;styleHint&lt;/tt&gt;&lt;/a&gt; etc. But whilst the &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; access functions return the values that were set, a &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; object returns the values that apply to the font that will actually be used to draw the text.&lt;/p&gt;
&lt;p&gt;For example, when the program asks for a 25pt Courier font on a machine that has a non-scalable 24pt Courier font, &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; will (normally) use the 24pt Courier for rendering. In this case, QFont::pointSize() returns 25 and QFontInfo::pointSize() returns 24.&lt;/p&gt;
&lt;p&gt;There are three ways to create a &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&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;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&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 info 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 info 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::fontInfo() returns the font info for a widget's font. This is equivalent to calling &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&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 info object is &lt;i&gt;not&lt;/i&gt; updated.&lt;/li&gt;
&lt;li&gt;QPainter::fontInfo() returns the font info for a painter's current font. If the painter's font is changed later, the font info object is &lt;i&gt;not&lt;/i&gt; updated.&lt;/li&gt;
&lt;/ol&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;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&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 QFontInfo(com.trolltech.qt.gui.QFontInfo arg__1)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QFontInfo(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Constructs a font info object for &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The font must be screen-compatible, i.e&amp;#x2e; a font you use when drawing text in &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 &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 info 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 QPainter::fontInfo() to get the font info when painting. This will give correct results also when painting on paint device that is not screen-compatible.&lt;/p&gt;
 */"/>
    <method name="public final boolean bold()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QFontInfo.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt; would return a value greater than QFont::Normal; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QFontInfo.html#weight()&quot;&gt;&lt;tt&gt;weight&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::bold&lt;/tt&gt; */"/>
    <method name="public final boolean exactMatch()" doc="/**
&lt;p&gt;Returns true if the matched window system font is exactly the same as the one specified by the font; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QFont::exactMatch&lt;/tt&gt; */"/>
    <method name="public final java.lang.String family()" doc="/**
&lt;p&gt;Returns the family name of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::family&lt;/tt&gt; */"/>
    <method name="public final boolean fixedPitch()" doc="/**
&lt;p&gt;Returns the fixed pitch value of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::fixedPitch&lt;/tt&gt; */"/>
    <method name="public final boolean italic()" doc="/**
&lt;p&gt;Returns the italic value of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::italic&lt;/tt&gt; */"/>
    <method name="public final boolean overline()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;

@see &lt;tt&gt;QFont::overline&lt;/tt&gt; */"/>
    <method name="public final int pixelSize()" doc="/**
&lt;p&gt;Returns the pixel size of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::pointSize&lt;/tt&gt; */"/>
    <method name="public final int pointSize()" doc="/**
&lt;p&gt;Returns the point size of the matched window system font.&lt;/p&gt;

@see &lt;a href=&quot;QFontInfo.html#pointSizeF()&quot;&gt;&lt;tt&gt;pointSizeF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QFont::pointSize&lt;/tt&gt; */"/>
    <method name="public final double pointSizeF()" doc="/**
&lt;p&gt;Returns the point size of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::pointSizeF&lt;/tt&gt; */"/>
    <method name="public final boolean rawMode()" doc="/**
&lt;p&gt;Returns true if the font is a raw mode font; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If it is a raw mode font, all other functions in &lt;a href=&quot;QFontInfo.html#QFontInfo(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;QFontInfo&lt;/tt&gt;&lt;/a&gt; will return the same values set in the &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;, regardless of the font actually used.&lt;/p&gt;

@see &lt;tt&gt;QFont::rawMode&lt;/tt&gt; */"/>
    <method name="public final boolean strikeOut()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;

@see &lt;tt&gt;QFont::strikeOut&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont.Style style()" doc="/**
&lt;p&gt;Returns the style value of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::style&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont.StyleHint styleHint()" doc="/**
&lt;p&gt;Returns the style of the matched window system font.&lt;/p&gt;
&lt;p&gt;Currently only returns the style hint set in &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QFont::styleHint&lt;/tt&gt;
@see &lt;tt&gt;QFont::StyleHint&lt;/tt&gt; */"/>
    <method name="public final boolean underline()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;

@see &lt;tt&gt;QFont::underline&lt;/tt&gt; */"/>
    <method name="public final int weight()" doc="/**
&lt;p&gt;Returns the weight of the matched window system font.&lt;/p&gt;

@see &lt;tt&gt;QFont::weight&lt;/tt&gt;
@see &lt;a href=&quot;QFontInfo.html#bold()&quot;&gt;&lt;tt&gt;bold&lt;/tt&gt;&lt;/a&gt; */"/>
</class>