CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Member Functions | |
void | Clear () |
Public Attributes | |
TPointFP | iAdvance |
double | iLength = 0 |
TRect * | iBounds = nullptr |
size_t | iCharacters = 0 |
Text metrics objects are filled in by TFont::DrawText and provide the advance, bounding box, number of characters drawn, etc.
|
inline |
Clear the metrics, including any rectangle pointed to by aBounds.
TPointFP CartoType::TTextMetrics::iAdvance |
The amount by which the origin is moved by drawing the text.
TRect* CartoType::TTextMetrics::iBounds = nullptr |
If this is non-null it receives the bounding rectangle of the pixels drawn.
size_t CartoType::TTextMetrics::iCharacters = 0 |
The number of characters drawn.
double CartoType::TTextMetrics::iLength = 0 |
The linear distance by which the origin is moved. If text is drawn on a curved path this is not the same as the vector length of iAdvance.