Package org.eclipse.swt.graphics
Class FontMetrics
java.lang.Object
org.eclipse.swt.graphics.FontMetrics
Instances of this class provide measurement information about fonts . 
FontMetrics are obtained from GCs using the
 getFontMetrics() method.- Since:
- 1.3
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCompares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.intReturns the average character width, measured in pixels, of the font described by the receiver.intReturns the height of the font described by the receiver, measured in pixels.inthashCode()Returns an integer hash code for the receiver.
- 
Method Details- 
getAverageCharWidthpublic int getAverageCharWidth()Returns the average character width, measured in pixels, of the font described by the receiver.- Returns:
- the average character width of the font
 
- 
getHeightpublic int getHeight()Returns the height of the font described by the receiver, measured in pixels. A font's height is the sum of its ascent, descent and leading area.- Returns:
- the height of the font
 
- 
equalsCompares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
- 
hashCodepublic int hashCode()Returns an integer hash code for the receiver. Any two objects that returntruewhen passed toequalsmust return the same value for this method.
 
-