libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::Font::LineMetrics Struct Reference

Vertical dimensions for shaping lines of text with this font. More...

#include <donut/graphics/Font.hpp>

Public Attributes

float ascender
 Vertical offset from the baseline to the visual top of the text. More...
 
float descender
 Vertical offset from the baseline to the visual bottom of the text. More...
 
float height
 Vertical offset to apply in order to advance to the next line. More...
 

Detailed Description

Vertical dimensions for shaping lines of text with this font.

Member Data Documentation

◆ ascender

float donut::graphics::Font::LineMetrics::ascender

Vertical offset from the baseline to the visual top of the text.

◆ descender

float donut::graphics::Font::LineMetrics::descender

Vertical offset from the baseline to the visual bottom of the text.

◆ height

float donut::graphics::Font::LineMetrics::height

Vertical offset to apply in order to advance to the next line.


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