Properties |
| int | ascent |
| | The ascent of the font.
|
|
int | averageCharacterWidth |
| | The average width of glyphs in the font.
|
| int | descent |
| | The descent of the font.
|
|
font | font |
| | The font used for the metrics calculations.
|
|
int | height |
| | The height of the font.
|
|
int | leading |
| | The leading of the font.
|
|
int | lineSpacing |
| | The distance from one base line to the next.
|
|
int | lineWidth |
| | The width of the underline and strikeout lines, adjusted for the point size of the font.
|
|
int | maximumCharacterWidth |
| | The width of the widest character in the font.
|
|
int | minimumLeftBearing |
| | The minimum left bearing of the font.
|
|
int | minimumRightBearing |
| | The minimum right bearing of the font.
|
| int | overlinePosition |
| | The distance from the base line to where an overline should be drawn.
|
| int | strikeOutPosition |
| | The distance from the base line to where the strikeout line should be drawn.
|
| int | underlinePosition |
| | The distance from the base line to where an underscore should be drawn.
|
|
int | xHeight |
| | The 'x' height of the font.
|
Provides metrics for a given font.
FontMetrics calculates the size of characters and strings for a given font.
It provides a subset of the C++ QFontMetrics API, with the added ability to change the font that is used for calculations via the font property.
- See Also
- TextMetrics