nomlib
Loading...
Searching...
No Matches
nom::FontMetrics Struct Reference

Container structure for global font metric data. More...

#include <FontMetrics.hpp>

Public Member Functions

 FontMetrics (void)
 Default constructor.
 ~FontMetrics (void)
 Destructor.

Public Attributes

sint height
 Maximum height of a font.
int newline
 Get the line spacing.
int ascent
 The height (in pixels) from the absolute top of the glyph to the base of the glyph.
int descent
 Height (in pixels) from the baseline to the bottom of the glyph.
std::string family
 Font family.
std::string name
 The font face style name.

Detailed Description

Container structure for global font metric data.

Definition at line 39 of file FontMetrics.hpp.

Constructor & Destructor Documentation

◆ FontMetrics()

nom::FontMetrics::FontMetrics ( void )
inline

Default constructor.

Definition at line 42 of file FontMetrics.hpp.

◆ ~FontMetrics()

nom::FontMetrics::~FontMetrics ( void )
inline

Destructor.

Definition at line 52 of file FontMetrics.hpp.

Member Data Documentation

◆ ascent

int nom::FontMetrics::ascent

The height (in pixels) from the absolute top of the glyph to the base of the glyph.

Definition at line 68 of file FontMetrics.hpp.

◆ descent

int nom::FontMetrics::descent

Height (in pixels) from the baseline to the bottom of the glyph.

Definition at line 71 of file FontMetrics.hpp.

◆ family

std::string nom::FontMetrics::family

Font family.

Definition at line 74 of file FontMetrics.hpp.

◆ height

sint nom::FontMetrics::height

Maximum height of a font.

Definition at line 58 of file FontMetrics.hpp.

◆ name

std::string nom::FontMetrics::name

The font face style name.

Definition at line 77 of file FontMetrics.hpp.

◆ newline

int nom::FontMetrics::newline

Get the line spacing.

Remarks
Line spacing is the vertical offset to apply between two consecutive lines of text.

Definition at line 64 of file FontMetrics.hpp.


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