Contains precalculated properties regarding text metrics for text to be renderered at a later stage.
More...
#include <qgstextmetrics.h>
Contains precalculated properties regarding text metrics for text to be renderered at a later stage.
- Note
- Not available in Python bindings
- Since
- QGIS 3.20
Definition at line 34 of file qgstextmetrics.h.
◆ QgsPrecalculatedTextMetrics()
QgsPrecalculatedTextMetrics::QgsPrecalculatedTextMetrics |
( |
const QStringList & |
graphemes, |
|
|
const QVector< double > & |
characterWidths, |
|
|
const QVector< double > & |
characterHeights, |
|
|
const QVector< double > & |
characterDescents |
|
) |
| |
|
inline |
Constructor for QgsPrecalculatedTextMetrics.
- Parameters
-
graphemes | list of graphemes contained in the text |
characterWidths | vector of character widths |
characterHeights | height of characters |
characterDescents | descent of characters |
Definition at line 45 of file qgstextmetrics.h.
◆ characterDescent()
double QgsPrecalculatedTextMetrics::characterDescent |
( |
int |
position | ) |
const |
|
inline |
Returns the descent of the character at the specified position.
- Since
- QGIS 3.28
Definition at line 86 of file qgstextmetrics.h.
◆ characterHeight()
double QgsPrecalculatedTextMetrics::characterHeight |
( |
int |
position | ) |
const |
|
inline |
Returns the character height of the character at the specified position (actually font metrics height, not individual character height).
- Since
- QGIS 3.28
Definition at line 79 of file qgstextmetrics.h.
◆ characterWidth()
double QgsPrecalculatedTextMetrics::characterWidth |
( |
int |
position | ) |
const |
|
inline |
Returns the width of the character at the specified position.
Definition at line 72 of file qgstextmetrics.h.
◆ count()
int QgsPrecalculatedTextMetrics::count |
( |
| ) |
const |
|
inline |
◆ grapheme()
QString QgsPrecalculatedTextMetrics::grapheme |
( |
int |
index | ) |
const |
|
inline |
◆ graphemeFormat()
Returns the character format for the grapheme at the specified index.
Definition at line 125 of file qgstextmetrics.h.
◆ graphemeFormatCount()
int QgsPrecalculatedTextMetrics::graphemeFormatCount |
( |
| ) |
const |
|
inline |
Returns the number of grapheme formats available.
Definition at line 120 of file qgstextmetrics.h.
◆ graphemes()
QStringList QgsPrecalculatedTextMetrics::graphemes |
( |
| ) |
const |
|
inline |
Returns the list of graphemes contained in the text.
Definition at line 105 of file qgstextmetrics.h.
◆ maximumCharacterDescent()
double QgsPrecalculatedTextMetrics::maximumCharacterDescent |
( |
| ) |
const |
|
inline |
Returns the maximum descent of any character found in the text.
- Since
- QGIS 3.28
Definition at line 100 of file qgstextmetrics.h.
◆ maximumCharacterHeight()
double QgsPrecalculatedTextMetrics::maximumCharacterHeight |
( |
| ) |
const |
|
inline |
Returns the maximum height of any character found in the text.
- Since
- QGIS 3.28
Definition at line 93 of file qgstextmetrics.h.
◆ setGraphemeFormats()
The documentation for this class was generated from the following file: