Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:00:24 CEST 2007 -->
<TITLE>
QFontMetricsF
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QFontMetricsF class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QFontMetricsF";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFontMetrics.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFrame.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QFontMetricsF.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QFontMetricsF.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QFontMetricsF</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QFontMetricsF</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QFontMetricsF</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

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

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QFont.html"><tt>QFont</tt></a>, 
<a href="QFontInfo.html"><tt>QFontInfo</tt></a>, 
<a href="QFontDatabase.html"><tt>QFontDatabase</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFont)">QFontMetricsF</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a font metrics object for <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetrics)">QFontMetricsF</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetrics.html" title="class in com.trolltech.qt.gui">QFontMetrics</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a font metrics object with floating point precision from the given <tt>arg__1</tt> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)">QFontMetricsF</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a copy of <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)">QFontMetricsF</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;arg__1,
              <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>&nbsp;pd)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a font metrics object for <tt>arg__1</tt> and <tt>pd</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#ascent()">ascent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ascent of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#averageCharWidth()">averageCharWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the average width of glyphs in the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#boundingRect(char)">boundingRect</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounding rectangle of the character <tt>arg__1</tt> relative to the left-most point on the base line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String)">boundingRect</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
             int&nbsp;flags,
             java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String, int)">boundingRect</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
             int&nbsp;flags,
             java.lang.String&nbsp;text,
             int&nbsp;tabStops)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounding rectangle of the characters in the given <tt>text</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String, int, int[])">boundingRect</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
             int&nbsp;flags,
             java.lang.String&nbsp;text,
             int&nbsp;tabStops,
             int[]&nbsp;tabArray)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#boundingRect(java.lang.String)">boundingRect</A></B>(java.lang.String&nbsp;string)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounding rectangle of the characters in the string specified by <tt>string</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#descent()">descent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the descent of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double)">elidedText</A></B>(java.lang.String&nbsp;text,
           <A HREF="../../../../com/trolltech/qt/core/Qt.TextElideMode.html" title="enum in com.trolltech.qt.core">Qt.TextElideMode</A>&nbsp;mode,
           double&nbsp;width)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QFontMetricsF.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double, int)"><tt>elidedText</tt></a>(<tt>text</tt>, <tt>mode</tt>, <tt>width</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double, int)">elidedText</A></B>(java.lang.String&nbsp;text,
           <A HREF="../../../../com/trolltech/qt/core/Qt.TextElideMode.html" title="enum in com.trolltech.qt.core">Qt.TextElideMode</A>&nbsp;mode,
           double&nbsp;width,
           int&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the string <tt>text</tt> is wider than <tt>width</tt>, returns an elided version of the string (i.e&#x2e;, a string with &quot;..&#x2e;&quot; in it).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QFontMetricsF instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#height()">height</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#inFont(char)">inFont</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if character <tt>arg__1</tt> is a valid character in the font; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#leading()">leading</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the leading of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#leftBearing(char)">leftBearing</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the left bearing of character <tt>arg__1</tt> in the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#lineSpacing()">lineSpacing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance from one base line to the next.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#lineWidth()">lineWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the underline and strikeout lines, adjusted for the point size of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#maxWidth()">maxWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the widest character in the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#minLeftBearing()">minLeftBearing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the minimum left bearing of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#minRightBearing()">minRightBearing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the minimum right bearing of the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#nativePointerArray(com.trolltech.qt.gui.QFontMetricsF[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QFontMetricsF array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#overlinePos()">overlinePos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance from the base line to where an overline should be drawn.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#rightBearing(char)">rightBearing</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the right bearing of character <tt>arg__1</tt> in the font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#size(int, java.lang.String)">size</A></B>(int&nbsp;flags,
     java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#size(int, java.lang.String, int)">size</A></B>(int&nbsp;flags,
     java.lang.String&nbsp;text,
     int&nbsp;tabStops)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#size(int, java.lang.String, int, int[])">size</A></B>(int&nbsp;flags,
     java.lang.String&nbsp;text,
     int&nbsp;tabStops,
     int[]&nbsp;tabArray)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size in pixels of the characters in the given
<tt>text</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#strikeOutPos()">strikeOutPos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance from the base line to where the strikeout line should be drawn.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#tightBoundingRect(java.lang.String)">tightBoundingRect</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a tight bounding rectangle around the characters in the string specified by <tt>text</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#underlinePos()">underlinePos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the distance from the base line to where an underscore should be drawn.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#width(char)">width</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p align="center"><img src="%2E%2E/images/bearings.png" alt="Bearings" /></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#width(java.lang.String)">width</A></B>(java.lang.String&nbsp;string)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width in pixels of the characters in the given <tt>string</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html#xHeight()">xHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the 'x' height of the font.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QFontMetricsF(com.trolltech.qt.gui.QFont, com.trolltech.qt.gui.QPaintDeviceInterface)"><!-- --></A><H3>
QFontMetricsF</H3>
<PRE>
public <B>QFontMetricsF</B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;arg__1,
                     <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>&nbsp;pd)</PRE>
<DL>
<DD><p>Constructs a font metrics object for <tt>arg__1</tt> and <tt>pd</tt>.</p>
<p>The font metrics will be compatible with the paintdevice passed. If the <tt>pd</tt> is 0, the metrics will be screen-compatible, ie. the metrics you get if you use the font for drawing text on a <a href="QWidget.html">widgets</tt></a> or <a href="QPixmap.html">pixmaps</tt></a>, not on a <a href="QPicture.html"><tt>QPicture</tt></a> or <a href="QPrinter.html"><tt>QPrinter</tt></a>.</p>
<p>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.</p>
<P>
</DL>
<HR>

<A NAME="QFontMetricsF(com.trolltech.qt.gui.QFontMetrics)"><!-- --></A><H3>
QFontMetricsF</H3>
<PRE>
public <B>QFontMetricsF</B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetrics.html" title="class in com.trolltech.qt.gui">QFontMetrics</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Constructs a font metrics object with floating point precision from the given <tt>arg__1</tt> object.</p>
<P>
</DL>
<HR>

<A NAME="QFontMetricsF(com.trolltech.qt.gui.QFont)"><!-- --></A><H3>
QFontMetricsF</H3>
<PRE>
public <B>QFontMetricsF</B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Constructs a font metrics object for <tt>arg__1</tt>.</p>
<p>The font metrics will be compatible with the paintdevice used to create <tt>arg__1</tt>.</p>
<p>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.</p>
<p>Use <a href="QFontMetricsF.html#QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)"><tt>QFontMetricsF</tt></a>(const <a href="QFont.html"><tt>QFont</tt></a> &amp;, <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> *) to get the font metrics that are compatible with a certain paint device.</p>
<P>
</DL>
<HR>

<A NAME="QFontMetricsF(com.trolltech.qt.gui.QFontMetricsF)"><!-- --></A><H3>
QFontMetricsF</H3>
<PRE>
public <B>QFontMetricsF</B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Constructs a copy of <tt>arg__1</tt>.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="ascent()"><!-- --></A><H3>
ascent</H3>
<PRE>
public final double <B>ascent</B>()</PRE>
<DL>
<DD><p>Returns the ascent of the font.</p>
<p>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&#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.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#descent()"><tt>descent</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="averageCharWidth()"><!-- --></A><H3>
averageCharWidth</H3>
<PRE>
public final double <B>averageCharWidth</B>()</PRE>
<DL>
<DD><p>Returns the average width of glyphs in the font.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="boundingRect(java.lang.String)"><!-- --></A><H3>
boundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundingRect</B>(java.lang.String&nbsp;string)</PRE>
<DL>
<DD><p>Returns the bounding rectangle of the characters in the string specified by <tt>string</tt>. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).</p>
<p>Note that the bounding rectangle may extend to the left of (0, 0), e.g&#x2e; for italicized fonts, and that the width of the returned rectangle might be different than what the <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> method returns.</p>
<p>If you want to know the advance width of the string (to layout a set of strings next to each other), use <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> instead.</p>
<p>Newline characters are processed as normal characters, <i>not</i> as linebreaks.</p>
<p>The height of the bounding rectangle is at least as large as the value returned <a href="QFontMetricsF.html#height()"><tt>height</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a>, 
<a href="QFontMetricsF.html#height()"><tt>height</tt></a>, 
<tt>QPainter::boundingRect</tt></DL>
</DD>
</DL>
<HR>

<A NAME="boundingRect(char)"><!-- --></A><H3>
boundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundingRect</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the bounding rectangle of the character <tt>arg__1</tt> relative to the left-most point on the base line.</p>
<p>Note that the bounding rectangle may extend to the left of (0, 0), e.g&#x2e; for italicized fonts, and that the text output may cover <i>all</i> pixels in the bounding rectangle.</p>
<p>Note that the rectangle usually extends both above and below the base line.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="descent()"><!-- --></A><H3>
descent</H3>
<PRE>
public final double <B>descent</B>()</PRE>
<DL>
<DD><p>Returns the descent of the font.</p>
<p>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&#x2e; to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#ascent()"><tt>ascent</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double)"><!-- --></A><H3>
elidedText</H3>
<PRE>
public final java.lang.String <B>elidedText</B>(java.lang.String&nbsp;text,
                                         <A HREF="../../../../com/trolltech/qt/core/Qt.TextElideMode.html" title="enum in com.trolltech.qt.core">Qt.TextElideMode</A>&nbsp;mode,
                                         double&nbsp;width)</PRE>
<DL>
<DD><p>Equivalent to <a href="QFontMetricsF.html#elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double, int)"><tt>elidedText</tt></a>(<tt>text</tt>, <tt>mode</tt>, <tt>width</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="elidedText(java.lang.String, com.trolltech.qt.core.Qt.TextElideMode, double, int)"><!-- --></A><H3>
elidedText</H3>
<PRE>
public final java.lang.String <B>elidedText</B>(java.lang.String&nbsp;text,
                                         <A HREF="../../../../com/trolltech/qt/core/Qt.TextElideMode.html" title="enum in com.trolltech.qt.core">Qt.TextElideMode</A>&nbsp;mode,
                                         double&nbsp;width,
                                         int&nbsp;flags)</PRE>
<DL>
<DD><p>If the string <tt>text</tt> is wider than <tt>width</tt>, returns an elided version of the string (i.e&#x2e;, a string with &quot;..&#x2e;&quot; in it). Otherwise, returns the original string.</p>
<p>The <tt>mode</tt> parameter specifies whether the text is elided on the left (e.g&#x2e;, &quot;..&#x2e;tech&quot;), in the middle (e.g&#x2e;, &quot;Tr..&#x2e;ch&quot;), or on the right (e.g&#x2e;, &quot;Trol..&#x2e;&quot;).</p>
<p>The <tt>width</tt> is specified in pixels, not characters.</p>
<p>The <tt>flags</tt> argument is optional and currently only supports Qt::TextShowMnemonic as value.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="height()"><!-- --></A><H3>
height</H3>
<PRE>
public final double <B>height</B>()</PRE>
<DL>
<DD><p>Returns the height of the font.</p>
<p>This is always equal to <a href="QFontMetricsF.html#ascent()"><tt>ascent</tt></a>+<a href="QFontMetricsF.html#descent()"><tt>descent</tt></a>+1 (the 1 is for the base line).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#leading()"><tt>leading</tt></a>, 
<a href="QFontMetricsF.html#lineSpacing()"><tt>lineSpacing</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="inFont(char)"><!-- --></A><H3>
inFont</H3>
<PRE>
public final boolean <B>inFont</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns true if character <tt>arg__1</tt> is a valid character in the font; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="leading()"><!-- --></A><H3>
leading</H3>
<PRE>
public final double <B>leading</B>()</PRE>
<DL>
<DD><p>Returns the leading of the font.</p>
<p>This is the natural inter-line spacing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#height()"><tt>height</tt></a>, 
<a href="QFontMetricsF.html#lineSpacing()"><tt>lineSpacing</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="leftBearing(char)"><!-- --></A><H3>
leftBearing</H3>
<PRE>
public final double <B>leftBearing</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the left bearing of character <tt>arg__1</tt> in the font.</p>
<p>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.</p>
<p>See width(QChar) for a graphical description of this metric.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#rightBearing(char)"><tt>rightBearing</tt></a>, 
<a href="QFontMetricsF.html#minLeftBearing()"><tt>minLeftBearing</tt></a>, 
<a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="lineSpacing()"><!-- --></A><H3>
lineSpacing</H3>
<PRE>
public final double <B>lineSpacing</B>()</PRE>
<DL>
<DD><p>Returns the distance from one base line to the next.</p>
<p>This value is always equal to <a href="QFontMetricsF.html#leading()"><tt>leading</tt></a>+<a href="QFontMetricsF.html#height()"><tt>height</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#height()"><tt>height</tt></a>, 
<a href="QFontMetricsF.html#leading()"><tt>leading</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="lineWidth()"><!-- --></A><H3>
lineWidth</H3>
<PRE>
public final double <B>lineWidth</B>()</PRE>
<DL>
<DD><p>Returns the width of the underline and strikeout lines, adjusted for the point size of the font.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#underlinePos()"><tt>underlinePos</tt></a>, 
<a href="QFontMetricsF.html#overlinePos()"><tt>overlinePos</tt></a>, 
<a href="QFontMetricsF.html#strikeOutPos()"><tt>strikeOutPos</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="maxWidth()"><!-- --></A><H3>
maxWidth</H3>
<PRE>
public final double <B>maxWidth</B>()</PRE>
<DL>
<DD><p>Returns the width of the widest character in the font.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="minLeftBearing()"><!-- --></A><H3>
minLeftBearing</H3>
<PRE>
public final double <B>minLeftBearing</B>()</PRE>
<DL>
<DD><p>Returns the minimum left bearing of the font.</p>
<p>This is the smallest <a href="QFontMetricsF.html#leftBearing(char)"><tt>leftBearing</tt></a>(char) of all characters in the font.</p>
<p>Note that this function can be very slow if the font is large.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#minRightBearing()"><tt>minRightBearing</tt></a>, 
<a href="QFontMetricsF.html#leftBearing(char)"><tt>leftBearing</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="minRightBearing()"><!-- --></A><H3>
minRightBearing</H3>
<PRE>
public final double <B>minRightBearing</B>()</PRE>
<DL>
<DD><p>Returns the minimum right bearing of the font.</p>
<p>This is the smallest <a href="QFontMetricsF.html#rightBearing(char)"><tt>rightBearing</tt></a>(char) of all characters in the font.</p>
<p>Note that this function can be very slow if the font is large.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#minLeftBearing()"><tt>minLeftBearing</tt></a>, 
<a href="QFontMetricsF.html#rightBearing(char)"><tt>rightBearing</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="overlinePos()"><!-- --></A><H3>
overlinePos</H3>
<PRE>
public final double <B>overlinePos</B>()</PRE>
<DL>
<DD><p>Returns the distance from the base line to where an overline should be drawn.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#underlinePos()"><tt>underlinePos</tt></a>, 
<a href="QFontMetricsF.html#strikeOutPos()"><tt>strikeOutPos</tt></a>, 
<a href="QFontMetricsF.html#lineWidth()"><tt>lineWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="rightBearing(char)"><!-- --></A><H3>
rightBearing</H3>
<PRE>
public final double <B>rightBearing</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the right bearing of character <tt>arg__1</tt> in the font.</p>
<p>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 <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> of the character.</p>
<p>See <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> for a graphical description of this metric.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#leftBearing(char)"><tt>leftBearing</tt></a>, 
<a href="QFontMetricsF.html#minRightBearing()"><tt>minRightBearing</tt></a>, 
<a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="strikeOutPos()"><!-- --></A><H3>
strikeOutPos</H3>
<PRE>
public final double <B>strikeOutPos</B>()</PRE>
<DL>
<DD><p>Returns the distance from the base line to where the strikeout line should be drawn.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#underlinePos()"><tt>underlinePos</tt></a>, 
<a href="QFontMetricsF.html#overlinePos()"><tt>overlinePos</tt></a>, 
<a href="QFontMetricsF.html#lineWidth()"><tt>lineWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="tightBoundingRect(java.lang.String)"><!-- --></A><H3>
tightBoundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>tightBoundingRect</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Returns a tight bounding rectangle around the characters in the string specified by <tt>text</tt>. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).</p>
<p>Note that the bounding rectangle may extend to the left of (0, 0), e.g&#x2e; for italicized fonts, and that the width of the returned rectangle might be different than what the <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> method returns.</p>
<p>If you want to know the advance width of the string (to layout a set of strings next to each other), use <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> instead.</p>
<p>Newline characters are processed as normal characters, <i>not</i> as linebreaks.</p>
<p><b>Warning:</b> Calling this method is very slow on Windows.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a>, 
<a href="QFontMetricsF.html#height()"><tt>height</tt></a>, 
<a href="QFontMetricsF.html#boundingRect(char)"><tt>boundingRect</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="underlinePos()"><!-- --></A><H3>
underlinePos</H3>
<PRE>
public final double <B>underlinePos</B>()</PRE>
<DL>
<DD><p>Returns the distance from the base line to where an underscore should be drawn.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#overlinePos()"><tt>overlinePos</tt></a>, 
<a href="QFontMetricsF.html#strikeOutPos()"><tt>strikeOutPos</tt></a>, 
<a href="QFontMetricsF.html#lineWidth()"><tt>lineWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="width(char)"><!-- --></A><H3>
width</H3>
<PRE>
public final double <B>width</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p align="center"><img src="%2E%2E/images/bearings.png" alt="Bearings" /></p><p>Returns the logical width of character <tt>arg__1</tt> in pixels. This is a distance appropriate for drawing a subsequent character after <tt>arg__1</tt>.</p>
<p>Some of the metrics are described in the image to the right. The central dark rectangles cover the logical <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> of each character. The outer pale rectangles cover the <a href="QFontMetricsF.html#leftBearing(char)"><tt>leftBearing</tt></a> and <a href="QFontMetricsF.html#rightBearing(char)"><tt>rightBearing</tt></a> of each character. Notice that the bearings of &quot;f&quot; in this particular font are both negative, while the bearings of &quot;o&quot; are both positive.</p>
<p><b>Warning:</b> 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.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#boundingRect(char)"><tt>boundingRect</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="width(java.lang.String)"><!-- --></A><H3>
width</H3>
<PRE>
public final double <B>width</B>(java.lang.String&nbsp;string)</PRE>
<DL>
<DD><p>Returns the width in pixels of the characters in the given <tt>string</tt>.</p>
<p>Note that this value is <i>not</i> equal to the width returned by <a href="QFontMetricsF.html#boundingRect(char)"><tt>boundingRect</tt></a>.<a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> because <a href="QFontMetricsF.html#boundingRect(char)"><tt>boundingRect</tt></a> returns a rectangle describing the pixels this string will cover whereas <a href="QFontMetricsF.html#width(java.lang.String)"><tt>width</tt></a> returns the distance to where the next string should be drawn.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFontMetricsF.html#boundingRect(char)"><tt>boundingRect</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="xHeight()"><!-- --></A><H3>
xHeight</H3>
<PRE>
public final double <B>xHeight</B>()</PRE>
<DL>
<DD><p>Returns the 'x' height of the font. This is often but not always the same as the height of the character 'x'.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QFontMetricsF instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QFontMetricsF[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QFontMetricsF.html" title="class in com.trolltech.qt.gui">QFontMetricsF</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QFontMetricsF array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String, int, int[])"><!-- --></A><H3>
boundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundingRect</B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
                                 int&nbsp;flags,
                                 java.lang.String&nbsp;text,
                                 int&nbsp;tabStops,
                                 int[]&nbsp;tabArray)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String, int)"><!-- --></A><H3>
boundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundingRect</B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
                                 int&nbsp;flags,
                                 java.lang.String&nbsp;text,
                                 int&nbsp;tabStops)</PRE>
<DL>
<DD>Returns the bounding rectangle of the characters in the given <tt>text</tt>.
This is the set of pixels the text would cover if drawn when constrained
to the bounding rectangle specified by <tt>rect</tt>.
<p>
The <tt>flags</tt> argument is the bitwise OR of the following flags:
<dir>
<li> Qt::AlignLeft aligns to the left border, except for
      Arabic and Hebrew where it aligns to the right.
<li> Qt::AlignRight aligns to the right border, except for
      Arabic and Hebrew where it aligns to the left.
<li> Qt::AlignJustify produces justified text.
<li> Qt::AlignHCenter aligns horizontally centered.
<li> Qt::AlignTop aligns to the top border.
<li> Qt::AlignBottom aligns to the bottom border.
<li> Qt::AlignVCenter aligns vertically centered
<li> Qt::AlignCenter (== <b>Qt::AlignHCenter | Qt::AlignVCenter</b>)
<li> Qt::TextSingleLine ignores newline characters in the text.
<li> Qt::TextExpandTabs expands tabs (see below)
<li> Qt::TextShowMnemonic interprets "&amp;x" as <u>x</u>, i.e. underlined.
<li> Qt::TextWordBreak breaks the text to fit the rectangle.
</dir>
<p>
Qt::Horizontal alignment defaults to Qt::AlignLeft and vertical
alignment defaults to Qt::AlignTop.
<p>
If several of the horizontal or several of the vertical alignment
flags are set, the resulting alignment is undefined.
<p>
These flags are defined in Qt::AlignmentFlag.
<p>
If Qt::TextExpandTabs is set in <tt>flags</tt>, the following behavior is
used to interpret tab characters in the text:
<dir>
<li> If <tt>tabArray</tt> is non-null, it specifies a 0-terminated sequence of
     pixel-positions for tabs in the text.
<li> If <tt>tabStops</tt> is non-zero, it is used as the tab spacing (in pixels).
</dir>
<p>
Note that the bounding rectangle may extend to the left of (0, 0),
e.g. for italicized fonts.
<p>
Newline characters are processed as line breaks.
<p>
Despite the different actual character heights, the heights of the
bounding rectangles of "Yes" and "yes" are the same.
<p>
The bounding rectangle returned by this function is somewhat larger
than that calculated by the simpler boundingRect() function. This
function uses the minLeftBearing() maximum left and minRightBearing()
right font bearings as is necessary for multi-line text to align
correctly. Also, fontHeight() and lineSpacing() are used to calculate
the height, rather than individual character heights.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="boundingRect(com.trolltech.qt.core.QRectF, int, java.lang.String)"><!-- --></A><H3>
boundingRect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>boundingRect</B>(<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect,
                                 int&nbsp;flags,
                                 java.lang.String&nbsp;text)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="size(int, java.lang.String, int, int[])"><!-- --></A><H3>
size</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>size</B>(int&nbsp;flags,
                         java.lang.String&nbsp;text,
                         int&nbsp;tabStops,
                         int[]&nbsp;tabArray)</PRE>
<DL>
<DD>Returns the size in pixels of the characters in the given
<tt>text</tt>.
<p>
The <tt>flags</tt> argument is the bitwise OR of the following flags:
<dir>
<li> Qt::TextSingleLine ignores newline characters.
<li> Qt::TextExpandTabs expands tabs (see below)
<li> Qt::TextShowMnemonic interprets "&amp;x" as <u>x</u>, i.e.
underlined.
<li> Qt::TextWordBreak breaks the text to fit the rectangle.
</dir>
<p>
These flags are defined in Qt::TextFlags.
<p>
If Qt::TextExpandTabs is set in <tt>flags</tt>, the following behavior is
used to interpret tab characters in the text:
<dir>
<li> If <tt>tabArray</tt> is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs in the text.
<li> If <tt>tabStops</tt> is non-zero, it is used as the tab spacing (in pixels).
</dir>
<p>
Newline characters are processed as line breaks.
<p>
Note: Despite the different actual character heights, the heights of
the
bounding rectangles of "Yes" and "yes" are the same.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="size(int, java.lang.String, int)"><!-- --></A><H3>
size</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>size</B>(int&nbsp;flags,
                         java.lang.String&nbsp;text,
                         int&nbsp;tabStops)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="size(int, java.lang.String)"><!-- --></A><H3>
size</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>size</B>(int&nbsp;flags,
                         java.lang.String&nbsp;text)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFontMetrics.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFrame.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QFontMetricsF.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QFontMetricsF.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>