CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::TTextMetrics Class Reference

#include <cartotype_graphics_context.h>

Public Member Functions

void Clear ()
 

Public Attributes

TPointFP iAdvance
 
double iLength = 0
 
TRectiBounds = nullptr
 
size_t iCharacters = 0
 

Detailed Description

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

Member Function Documentation

◆ Clear()

void CartoType::TTextMetrics::Clear ( )
inline

Clear the metrics, including any rectangle pointed to by aBounds.

Member Data Documentation

◆ iAdvance

TPointFP CartoType::TTextMetrics::iAdvance

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

◆ iBounds

TRect* CartoType::TTextMetrics::iBounds = nullptr

If this is non-null it receives the bounding rectangle of the pixels drawn.

◆ iCharacters

size_t CartoType::TTextMetrics::iCharacters = 0

The number of characters drawn.

◆ iLength

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.


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