CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Attributes | |
PointFP | Advance |
double | Length = 0 |
Rect | Bounds |
size_t | Characters = 0 |
Text metrics objects are filled in by Font::DrawText and provide the advance, bounding box, number of characters drawn, etc.
PointFP CartoTypeCore::TextMetrics::Advance |
The amount by which the origin is moved by drawing the text.
Rect CartoTypeCore::TextMetrics::Bounds |
The bounding rectangle of the pixels drawn.
size_t CartoTypeCore::TextMetrics::Characters = 0 |
The number of characters drawn.
double CartoTypeCore::TextMetrics::Length = 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.