CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Attributes | List of all members
CartoTypeCore::TextMetrics Class Reference

#include <cartotype_graphics_context.h>

Public Attributes

PointFP Advance
 
double Length = 0
 
Rect Bounds
 
size_t Characters = 0
 

Detailed Description

Text metrics objects are filled in by Font::DrawText and provide the advance, bounding box, number of characters drawn, etc.

Member Data Documentation

◆ Advance

PointFP CartoTypeCore::TextMetrics::Advance

The amount by which the origin is moved by drawing the text.

◆ Bounds

Rect CartoTypeCore::TextMetrics::Bounds

The bounding rectangle of the pixels drawn.

◆ Characters

size_t CartoTypeCore::TextMetrics::Characters = 0

The number of characters drawn.

◆ Length

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.


The documentation for this class was generated from the following file: