<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QRawFont Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QRawFont Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QRawFont class provides access to a single physical instance of a font. <a href="#details">More...</a></p> <h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qrawfont.html#AntialiasingType-enum">AntialiasingType</a></b> { PixelAntialiasing, SubPixelAntialiasing }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qrawfont.html#QRawFont">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrawfont.html#QRawFont-2">__init__</a></b> (<i>self</i>, QString <i>fileName</i>, float <i>pixelSize</i>, QFont.HintingPreference <i>hintingPreference</i> = QFont.PreferDefaultHinting)</li><li><div class="fn" /><b><a href="qrawfont.html#QRawFont-3">__init__</a></b> (<i>self</i>, QByteArray <i>fontData</i>, float <i>pixelSize</i>, QFont.HintingPreference <i>hintingPreference</i> = QFont.PreferDefaultHinting)</li><li><div class="fn" /><b><a href="qrawfont.html#QRawFont-4">__init__</a></b> (<i>self</i>, QRawFont <i>other</i>)</li><li><div class="fn" />list-of-QPointF <b><a href="qrawfont.html#advancesForGlyphIndexes">advancesForGlyphIndexes</a></b> (<i>self</i>, list-of-int <i>glyphIndexes</i>)</li><li><div class="fn" />QImage <b><a href="qrawfont.html#alphaMapForGlyph">alphaMapForGlyph</a></b> (<i>self</i>, int <i>glyphIndex</i>, AntialiasingType <i>antialiasingType</i> = QRawFont.SubPixelAntialiasing, QTransform <i>transform</i> = QTransform())</li><li><div class="fn" />float <b><a href="qrawfont.html#ascent">ascent</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#averageCharWidth">averageCharWidth</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#descent">descent</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qrawfont.html#familyName">familyName</a></b> (<i>self</i>)</li><li><div class="fn" />QByteArray <b><a href="qrawfont.html#fontTable">fontTable</a></b> (<i>self</i>, str <i>tagName</i>)</li><li><div class="fn" />list-of-int <b><a href="qrawfont.html#glyphIndexesForString">glyphIndexesForString</a></b> (<i>self</i>, QString <i>text</i>)</li><li><div class="fn" />QFont.HintingPreference <b><a href="qrawfont.html#hintingPreference">hintingPreference</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qrawfont.html#isValid">isValid</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#leading">leading</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrawfont.html#loadFromData">loadFromData</a></b> (<i>self</i>, QByteArray <i>fontData</i>, float <i>pixelSize</i>, QFont.HintingPreference <i>hintingPreference</i>)</li><li><div class="fn" /><b><a href="qrawfont.html#loadFromFile">loadFromFile</a></b> (<i>self</i>, QString <i>fileName</i>, float <i>pixelSize</i>, QFont.HintingPreference <i>hintingPreference</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#maxCharWidth">maxCharWidth</a></b> (<i>self</i>)</li><li><div class="fn" />QPainterPath <b><a href="qrawfont.html#pathForGlyph">pathForGlyph</a></b> (<i>self</i>, int <i>glyphIndex</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#pixelSize">pixelSize</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrawfont.html#setPixelSize">setPixelSize</a></b> (<i>self</i>, float <i>pixelSize</i>)</li><li><div class="fn" />QFont.Style <b><a href="qrawfont.html#style">style</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qrawfont.html#styleName">styleName</a></b> (<i>self</i>)</li><li><div class="fn" />list-of-QFontDatabase.WritingSystem <b><a href="qrawfont.html#supportedWritingSystems">supportedWritingSystems</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qrawfont.html#supportsCharacter">supportsCharacter</a></b> (<i>self</i>, int <i>ucs4</i>)</li><li><div class="fn" />bool <b><a href="qrawfont.html#supportsCharacter-2">supportsCharacter</a></b> (<i>self</i>, QChar <i>character</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#unitsPerEm">unitsPerEm</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qrawfont.html#weight">weight</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrawfont.html#xHeight">xHeight</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />QRawFont <b><a href="qrawfont.html#fromFont">fromFont</a></b> (QFont <i>font</i>, QFontDatabase.WritingSystem <i>writingSystem</i> = QFontDatabase.Any)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qrawfont.html#__eq__">__eq__</a></b> (<i>self</i>, QRawFont <i>other</i>)</li><li><div class="fn" />bool <b><a href="qrawfont.html#__ne__">__ne__</a></b> (<i>self</i>, QRawFont <i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QRawFont class provides access to a single physical instance of a font.</p> <p><b>Note:</b> QRawFont is a low level class. For most purposes <a href="qfont.html">QFont</a> is a more appropriate class.</p> <p>Most commonly, when presenting text in a user interface, the exact fonts used to render the characters is to some extent unknown. This can be the case for several reasons: For instance, the actual, physical fonts present on the target system could be unexpected to the developers, or the text could contain user selected styles, sizes or writing systems that are not supported by font chosen in the code.</p> <p>Therefore, Qt's <a href="qfont.html">QFont</a> class really represents a query for fonts. When text is interpreted, Qt will do its best to match the text to the query, but depending on the support, different fonts can be used behind the scenes.</p> <p>For most use cases, this is both expected and necessary, as it minimizes the possibility of text in the user interface being undisplayable. In some cases, however, more direct control over the process might be useful. It is for these use cases the QRawFont class exists.</p> <p>A QRawFont object represents a single, physical instance of a given font in a given pixel size. I.e. in the typical case it represents a set of TrueType or OpenType font tables and uses a user specified pixel size to convert metrics into logical pixel units. It can be used in combination with the <a href="qglyphrun.html">QGlyphRun</a> class to draw specific glyph indexes at specific positions, and also have accessors to some relevant data in the physical font.</p> <p>QRawFont only provides support for the main font technologies: GDI and DirectWrite on Windows platforms, <a href="qt-embedded-fonts.html#freetype">FreeType</a> on Symbian and Linux platforms and CoreText on Mac OS X. For other font back-ends, the APIs will be disabled.</p> <p>QRawFont can be constructed in a number of ways:</p> <ul> <li>It can be constructed by calling QTextLayout.glyphs() or QTextFragment.glyphs(). The returned QGlyphs objects will contain QRawFont objects which represent the actual fonts used to render each portion of the text.</li> <li>It can be constructed by passing a <a href="qfont.html">QFont</a> object to <a href="qrawfont.html#fromFont">QRawFont.fromFont</a>(). The function will return a QRawFont object representing the font that will be selected as response to the <a href="qfont.html">QFont</a> query and the selected writing system.</li> <li>It can be constructed by passing a file name or <a href="qbytearray.html">QByteArray</a> directly to the QRawFont constructor, or by calling <a href="qrawfont.html#loadFromFile">loadFromFile</a>() or <a href="qrawfont.html#loadFromData">loadFromData</a>(). In this case, the font will not be registered in <a href="qfontdatabase.html">QFontDatabase</a>, and it will not be available as part of regular font selection.</li> </ul> <p>QRawFont is considered local to the thread in which it is constructed (either using a constructor, or by calling <a href="qrawfont.html#loadFromData">loadFromData</a>() or <a href="qrawfont.html#loadFromFile">loadFromFile</a>()). The QRawFont cannot be moved to a different thread, but will have to be recreated in the thread in question.</p> <p><b>Note:</b> For the requirement of caching glyph indexes and font selections for static text to avoid reshaping and relayouting in the inner loop of an application, a better choice is the <a href="qstatictext.html">QStaticText</a> class, since it optimizes the memory cost of the cache and also provides the possibility of paint engine specific caches for an additional speed-up.</p> <hr /><h2>Type Documentation</h2><h3 class="fn"><a name="AntialiasingType-enum" />QRawFont.AntialiasingType</h3><p>This enum represents the different ways a glyph can be rasterized in the function <a href="qrawfont.html#alphaMapForGlyph">alphaMapForGlyph</a>().</p> <table class="valuelist"> <tr class="odd" valign="top"> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QRawFont.PixelAntialiasing</tt></td> <td class="topAlign"><tt>0</tt></td> <td class="topAlign">Will rasterize by measuring the coverage of the shape on whole pixels. The returned image contains the alpha values of each pixel based on the coverage of the glyph shape.</td> </tr> <tr> <td class="topAlign"><tt>QRawFont.SubPixelAntialiasing</tt></td> <td class="topAlign"><tt>1</tt></td> <td class="topAlign">Will rasterize by measuring the coverage of each subpixel, returning a separate alpha value for each of the red, green and blue components of each pixel.</td> </tr> </table> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QRawFont" />QRawFont.__init__ (<i>self</i>)</h3><p>Constructs an invalid <a href="qrawfont.html">QRawFont</a>.</p> <h3 class="fn"><a name="QRawFont-2" />QRawFont.__init__ (<i>self</i>, QString <i>fileName</i>, float <i>pixelSize</i>, <a href="qfont.html#HintingPreference-enum">QFont.HintingPreference</a> <i>hintingPreference</i> = QFont.PreferDefaultHinting)</h3><p>Constructs a <a href="qrawfont.html">QRawFont</a> representing the font contained in the file referenced by <i>fileName</i> for the size (in pixels) given by <i>pixelSize</i>, and using the hinting preference specified by <i>hintingPreference</i>.</p> <p><b>Note:</b> The referenced file must contain a TrueType or OpenType font.</p> <h3 class="fn"><a name="QRawFont-3" />QRawFont.__init__ (<i>self</i>, <a href="qbytearray.html">QByteArray</a> <i>fontData</i>, float <i>pixelSize</i>, <a href="qfont.html#HintingPreference-enum">QFont.HintingPreference</a> <i>hintingPreference</i> = QFont.PreferDefaultHinting)</h3><p>Constructs a <a href="qrawfont.html">QRawFont</a> representing the font contained in the supplied <i>fontData</i> for the size (in pixels) given by <i>pixelSize</i>, and using the hinting preference specified by <i>hintingPreference</i>.</p> <p><b>Note:</b> The data must contain a TrueType or OpenType font.</p> <h3 class="fn"><a name="QRawFont-4" />QRawFont.__init__ (<i>self</i>, <a href="qrawfont.html">QRawFont</a> <i>other</i>)</h3><p>Creates a <a href="qrawfont.html">QRawFont</a> which is a copy of <i>other</i>.</p> <h3 class="fn"><a name="advancesForGlyphIndexes" />list-of-QPointF QRawFont.advancesForGlyphIndexes (<i>self</i>, list-of-int <i>glyphIndexes</i>)</h3><p>Returns the <a href="qrawfont.html">QRawFont</a>'s advances for each of the <i>glyphIndexes</i> in pixel units. The advances give the distance from the position of a given glyph to where the next glyph should be drawn to make it appear as if the two glyphs are unspaced.</p> <p><b>See also</b> <a href="qtextline.html#horizontalAdvance">QTextLine.horizontalAdvance</a>() and <a href="qfontmetricsf.html#width">QFontMetricsF.width</a>().</p> <h3 class="fn"><a name="alphaMapForGlyph" /><a href="qimage.html">QImage</a> QRawFont.alphaMapForGlyph (<i>self</i>, int <i>glyphIndex</i>, <a href="qrawfont.html#AntialiasingType-enum">AntialiasingType</a> <i>antialiasingType</i> = QRawFont.SubPixelAntialiasing, <a href="qtransform.html">QTransform</a> <i>transform</i> = QTransform())</h3><p>This function returns a rasterized image of the glyph at the given <i>glyphIndex</i> in the underlying font, using the <i>transform</i> specified. If the <a href="qrawfont.html">QRawFont</a> is not valid, this function will return an invalid <a href="qimage.html">QImage</a>.</p> <p>If <i>antialiasingType</i> is set to <a href="qrawfont.html#AntialiasingType-enum">QRawFont.SubPixelAntialiasing</a>, then the resulting image will be in <a href="qimage.html#Format-enum">QImage.Format_RGB32</a> and the RGB values of each pixel will represent the subpixel opacities of the pixel in the rasterization of the glyph. Otherwise, the image will be in the format of <a href="qimage.html#Format-enum">QImage.Format_Indexed8</a> and each pixel will contain the opacity of the pixel in the rasterization.</p> <p><b>See also</b> <a href="qrawfont.html#pathForGlyph">pathForGlyph</a>() and <a href="qpainter.html#drawGlyphRun">QPainter.drawGlyphRun</a>().</p> <h3 class="fn"><a name="ascent" />float QRawFont.ascent (<i>self</i>)</h3><p>Returns the ascent of this <a href="qrawfont.html">QRawFont</a> in pixel units.</p> <p><b>See also</b> <a href="qfontmetricsf.html#ascent">QFontMetricsF.ascent</a>().</p> <h3 class="fn"><a name="averageCharWidth" />float QRawFont.averageCharWidth (<i>self</i>)</h3><p>Returns the average character width of this <a href="qrawfont.html">QRawFont</a> in pixel units.</p> <p><b>See also</b> <a href="qfontmetricsf.html#averageCharWidth">QFontMetricsF.averageCharWidth</a>().</p> <h3 class="fn"><a name="descent" />float QRawFont.descent (<i>self</i>)</h3><p>Returns the descent of this <a href="qrawfont.html">QRawFont</a> in pixel units.</p> <p><b>See also</b> <a href="qfontmetricsf.html#descent">QFontMetricsF.descent</a>().</p> <h3 class="fn"><a name="familyName" />QString QRawFont.familyName (<i>self</i>)</h3><p>Returns the family name of this <a href="qrawfont.html">QRawFont</a>.</p> <h3 class="fn"><a name="fontTable" /><a href="qbytearray.html">QByteArray</a> QRawFont.fontTable (<i>self</i>, str <i>tagName</i>)</h3><p>Retrieves the sfnt table named <i>tagName</i> from the underlying physical font, or an empty byte array if no such table was found. The returned font table's byte order is Big Endian, like the sfnt format specifies. The <i>tagName</i> must be four characters long and should be formatted in the default endianness of the current platform.</p> <h3 class="fn"><a name="fromFont" /><a href="qrawfont.html">QRawFont</a> QRawFont.fromFont (<a href="qfont.html">QFont</a> <i>font</i>, <a href="qfontdatabase.html#WritingSystem-enum">QFontDatabase.WritingSystem</a> <i>writingSystem</i> = QFontDatabase.Any)</h3><p>Fetches the physical representation based on a <i>font</i> query. The physical font returned is the font that will be preferred by Qt in order to display text in the selected <i>writingSystem</i>.</p> <h3 class="fn"><a name="glyphIndexesForString" />list-of-int QRawFont.glyphIndexesForString (<i>self</i>, QString <i>text</i>)</h3><p>Converts the string of unicode points given by <i>text</i> to glyph indexes using the CMAP table in the underlying font, and returns a vector containing the result.</p> <p>Note that, in cases where there are other tables in the font that affect the shaping of the text, the returned glyph indexes will not correctly represent the rendering of the text. To get the correctly shaped text, you can use <a href="qtextlayout.html">QTextLayout</a> to lay out and shape the text, then call QTextLayout.glyphs() to get the set of glyph index list and <a href="qrawfont.html">QRawFont</a> pairs.</p> <p><b>See also</b> <a href="qrawfont.html#advancesForGlyphIndexes">advancesForGlyphIndexes</a>(), <a href="qrawfont.html#glyphIndexesForChars">glyphIndexesForChars</a>(), <a href="qglyphrun.html">QGlyphRun</a>, <a href="qtextlayout.html#glyphRuns">QTextLayout.glyphRuns</a>(), and <a href="qtextfragment.html#glyphRuns">QTextFragment.glyphRuns</a>().</p> <h3 class="fn"><a name="hintingPreference" /><a href="qfont.html#HintingPreference-enum">QFont.HintingPreference</a> QRawFont.hintingPreference (<i>self</i>)</h3><p>Returns the hinting preference used to construct this <a href="qrawfont.html">QRawFont</a>.</p> <p><b>See also</b> <a href="qfont.html#hintingPreference">QFont.hintingPreference</a>().</p> <h3 class="fn"><a name="isValid" />bool QRawFont.isValid (<i>self</i>)</h3><p>Returns true if the <a href="qrawfont.html">QRawFont</a> is valid and false otherwise.</p> <h3 class="fn"><a name="leading" />float QRawFont.leading (<i>self</i>)</h3><p>Returns the leading of this <a href="qrawfont.html">QRawFont</a> in pixel units.</p> <p><b>See also</b> <a href="qfontmetricsf.html#leading">QFontMetricsF.leading</a>().</p> <h3 class="fn"><a name="loadFromData" />QRawFont.loadFromData (<i>self</i>, <a href="qbytearray.html">QByteArray</a> <i>fontData</i>, float <i>pixelSize</i>, <a href="qfont.html#HintingPreference-enum">QFont.HintingPreference</a> <i>hintingPreference</i>)</h3><p>Replaces the current <a href="qrawfont.html">QRawFont</a> with the font contained in the supplied <i>fontData</i> for the size (in pixels) given by <i>pixelSize</i>, and using the hinting preference specified by <i>hintingPreference</i>.</p> <p>The <i>fontData</i> must contain a TrueType or OpenType font.</p> <p><b>See also</b> <a href="qrawfont.html#loadFromFile">loadFromFile</a>().</p> <h3 class="fn"><a name="loadFromFile" />QRawFont.loadFromFile (<i>self</i>, QString <i>fileName</i>, float <i>pixelSize</i>, <a href="qfont.html#HintingPreference-enum">QFont.HintingPreference</a> <i>hintingPreference</i>)</h3><p>Replaces the current <a href="qrawfont.html">QRawFont</a> with the contents of the file referenced by <i>fileName</i> for the size (in pixels) given by <i>pixelSize</i>, and using the hinting preference specified by <i>hintingPreference</i>.</p> <p>The file must reference a TrueType or OpenType font.</p> <p><b>See also</b> <a href="qrawfont.html#loadFromData">loadFromData</a>().</p> <h3 class="fn"><a name="maxCharWidth" />float QRawFont.maxCharWidth (<i>self</i>)</h3><p>Returns the width of the widest character in the font.</p> <p><b>See also</b> <a href="qfontmetricsf.html#maxWidth">QFontMetricsF.maxWidth</a>().</p> <h3 class="fn"><a name="pathForGlyph" /><a href="qpainterpath.html">QPainterPath</a> QRawFont.pathForGlyph (<i>self</i>, int <i>glyphIndex</i>)</h3><p>This function returns the shape of the glyph at a given <i>glyphIndex</i> in the underlying font if the <a href="qrawfont.html">QRawFont</a> is valid. Otherwise, it returns an empty <a href="qpainterpath.html">QPainterPath</a>.</p> <p>The returned glyph will always be unhinted.</p> <p><b>See also</b> <a href="qrawfont.html#alphaMapForGlyph">alphaMapForGlyph</a>() and <a href="qpainterpath.html#addText">QPainterPath.addText</a>().</p> <h3 class="fn"><a name="pixelSize" />float QRawFont.pixelSize (<i>self</i>)</h3><p>Returns the pixel size set for this <a href="qrawfont.html">QRawFont</a>. The pixel size affects how glyphs are rasterized, the size of glyphs returned by <a href="qrawfont.html#pathForGlyph">pathForGlyph</a>(), and is used to convert internal metrics from design units to logical pixel units.</p> <p><b>See also</b> <a href="qrawfont.html#setPixelSize">setPixelSize</a>().</p> <h3 class="fn"><a name="setPixelSize" />QRawFont.setPixelSize (<i>self</i>, float <i>pixelSize</i>)</h3><p>Sets the pixel size with which this font should be rendered to <i>pixelSize</i>.</p> <p><b>See also</b> <a href="qrawfont.html#pixelSize">pixelSize</a>().</p> <h3 class="fn"><a name="style" /><a href="qfont.html#Style-enum">QFont.Style</a> QRawFont.style (<i>self</i>)</h3><p>Returns the style of this <a href="qrawfont.html">QRawFont</a>.</p> <p><b>See also</b> <a href="qfont.html#style">QFont.style</a>().</p> <h3 class="fn"><a name="styleName" />QString QRawFont.styleName (<i>self</i>)</h3><p>Returns the style name of this <a href="qrawfont.html">QRawFont</a>.</p> <p><b>See also</b> <a href="qfont.html#styleName">QFont.styleName</a>().</p> <h3 class="fn"><a name="supportedWritingSystems" />list-of-QFontDatabase.WritingSystem QRawFont.supportedWritingSystems (<i>self</i>)</h3><p>Returns a list of writing systems supported by the font according to designer supplied information in the font file. Please note that this does not guarantee support for a specific unicode point in the font. You can use the <a href="qrawfont.html#supportsCharacter">supportsCharacter</a>() to check support for a single, specific character.</p> <p><b>Note:</b> The list is determined based on the unicode ranges and codepage ranges set in the font's OS/2 table and requires such a table to be present in the underlying font file.</p> <p><b>See also</b> <a href="qrawfont.html#supportsCharacter">supportsCharacter</a>().</p> <h3 class="fn"><a name="supportsCharacter" />bool QRawFont.supportsCharacter (<i>self</i>, int <i>ucs4</i>)</h3><p>Returns true if the font has a glyph that corresponds to the given <i>character</i>.</p> <p><b>See also</b> <a href="qrawfont.html#supportedWritingSystems">supportedWritingSystems</a>().</p> <h3 class="fn"><a name="supportsCharacter-2" />bool QRawFont.supportsCharacter (<i>self</i>, QChar <i>character</i>)</h3><p>This is an overloaded function.</p> <p>Returns true if the font has a glyph that corresponds to the UCS-4 encoded character <i>ucs4</i>.</p> <p><b>See also</b> <a href="qrawfont.html#supportedWritingSystems">supportedWritingSystems</a>().</p> <h3 class="fn"><a name="unitsPerEm" />float QRawFont.unitsPerEm (<i>self</i>)</h3><p>Returns the number of design units define the width and height of the em square for this <a href="qrawfont.html">QRawFont</a>. This value is used together with the pixel size when converting design metrics to pixel units, as the internal metrics are specified in design units and the pixel size gives the size of 1 em in pixels.</p> <p><b>See also</b> <a href="qrawfont.html#pixelSize">pixelSize</a>() and <a href="qrawfont.html#setPixelSize">setPixelSize</a>().</p> <h3 class="fn"><a name="weight" />int QRawFont.weight (<i>self</i>)</h3><p>Returns the weight of this <a href="qrawfont.html">QRawFont</a>.</p> <p><b>See also</b> <a href="qfont.html#weight">QFont.weight</a>().</p> <h3 class="fn"><a name="xHeight" />float QRawFont.xHeight (<i>self</i>)</h3><p>Returns the xHeight of this <a href="qrawfont.html">QRawFont</a> in pixel units.</p> <p><b>See also</b> <a href="qfontmetricsf.html#xHeight">QFontMetricsF.xHeight</a>().</p> <h3 class="fn"><a name="__eq__" />bool QRawFont.__eq__ (<i>self</i>, <a href="qrawfont.html">QRawFont</a> <i>other</i>)</h3><h3 class="fn"><a name="__ne__" />bool QRawFont.__ne__ (<i>self</i>, <a href="qrawfont.html">QRawFont</a> <i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>