libgui 3.00
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
FontOffset Struct Reference

Per-pixel-size font metrics used for text-block alignment/positioning. More...

#include <GuiTextRenderer.h>

Public Attributes

int16_t ascender = 0
 Font ascender for the current size (distance above the baseline), in design pixels.
 
int16_t descender = 0
 Font descender for the current size (negative: distance below the baseline), in design pixels.
 
int16_t max = 0
 Height above the baseline of the tallest glyph in the measured string (see GuiTextRenderer::getOffset())
 
int16_t min = 0
 Depth below the baseline of the lowest glyph in the measured string (see GuiTextRenderer::getOffset())
 

Detailed Description

Per-pixel-size font metrics used for text-block alignment/positioning.

Definition at line 40 of file GuiTextRenderer.h.

Member Data Documentation

◆ ascender

int16_t FontOffset::ascender = 0

Font ascender for the current size (distance above the baseline), in design pixels.

Definition at line 41 of file GuiTextRenderer.h.

◆ descender

int16_t FontOffset::descender = 0

Font descender for the current size (negative: distance below the baseline), in design pixels.

Definition at line 42 of file GuiTextRenderer.h.

◆ max

int16_t FontOffset::max = 0

Height above the baseline of the tallest glyph in the measured string (see GuiTextRenderer::getOffset())

Definition at line 43 of file GuiTextRenderer.h.

◆ min

int16_t FontOffset::min = 0

Depth below the baseline of the lowest glyph in the measured string (see GuiTextRenderer::getOffset())

Definition at line 44 of file GuiTextRenderer.h.


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