libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::TextMetrics Struct Reference

Result of a text measurement: label dimensions and per-glyph bounding boxes, relative to the label origin and the glyph base point respectively. More...

#include <MapPainter.h>

Classes

struct  Glyph
 

Public Attributes

std::vector< Glyphglyphs
 One entry per character.
 
double height {0.0}
 Label height in pixel.
 
double width {0.0}
 Label width in pixel.
 

Detailed Description

Result of a text measurement: label dimensions and per-glyph bounding boxes, relative to the label origin and the glyph base point respectively.

Member Data Documentation

◆ glyphs

std::vector<Glyph> osmscout::TextMetrics::glyphs

One entry per character.

Referenced by osmscout::MapPainter::MeasureLabel().

◆ height

double osmscout::TextMetrics::height {0.0}

Label height in pixel.

Referenced by osmscout::MapPainter::MeasureLabel().

◆ width

double osmscout::TextMetrics::width {0.0}

Label width in pixel.

Referenced by osmscout::MapPainter::MeasureLabel().


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