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

Cached per-glyph metrics and rasterized texture, keyed by (pixel size, char code) in GuiTextRenderer::fontData. More...

#include <GuiTextRenderer.h>

Public Attributes

int16_t renderOffsetX = 0
 Horizontal offset from the pen position to the bitmap's left edge.
 
uint16_t glyphAdvanceX = 0
 Horizontal pen advance after this glyph.
 
uint16_t glyphAdvanceY = 0
 Vertical pen advance after this glyph.
 
uint32_t glyphIndex = 0
 FreeType glyph index.
 
uint16_t textureWidth = 0
 Pixel dims of the rasterized bitmap/texture, at uiScale - always >= drawWidth/drawHeight, and equal to them when uiScale is 1.0.
 
uint16_t textureHeight = 0
 Height counterpart of textureWidth.
 
uint16_t drawWidth = 0
 Design-pixel dims to actually draw the quad at (textureWidth/Height divided back down by uiScale) - keeps text laid out and sized identically to uiScale 1.0 while the texture itself is crisper.
 
uint16_t drawHeight = 0
 Height counterpart of drawWidth.
 
int16_t renderOffsetY = 0
 Height of the bitmap's top edge above the baseline.
 
int16_t renderOffsetMax = 0
 Height of the glyph bitmap above the baseline (feeds FontOffset::max)
 
int16_t renderOffsetMin = 0
 Depth of the glyph bitmap below the baseline (feeds FontOffset::min)
 
void * texture = nullptr
 Abstracted texture pointer.
 

Detailed Description

Cached per-glyph metrics and rasterized texture, keyed by (pixel size, char code) in GuiTextRenderer::fontData.

Definition at line 49 of file GuiTextRenderer.h.

Member Data Documentation

◆ drawHeight

uint16_t GlyphData::drawHeight = 0

Height counterpart of drawWidth.

Definition at line 64 of file GuiTextRenderer.h.

◆ drawWidth

uint16_t GlyphData::drawWidth = 0

Design-pixel dims to actually draw the quad at (textureWidth/Height divided back down by uiScale) - keeps text laid out and sized identically to uiScale 1.0 while the texture itself is crisper.

Definition at line 63 of file GuiTextRenderer.h.

◆ glyphAdvanceX

uint16_t GlyphData::glyphAdvanceX = 0

Horizontal pen advance after this glyph.

Definition at line 51 of file GuiTextRenderer.h.

◆ glyphAdvanceY

uint16_t GlyphData::glyphAdvanceY = 0

Vertical pen advance after this glyph.

Definition at line 52 of file GuiTextRenderer.h.

◆ glyphIndex

uint32_t GlyphData::glyphIndex = 0

FreeType glyph index.

Definition at line 53 of file GuiTextRenderer.h.

◆ renderOffsetMax

int16_t GlyphData::renderOffsetMax = 0

Height of the glyph bitmap above the baseline (feeds FontOffset::max)

Definition at line 67 of file GuiTextRenderer.h.

◆ renderOffsetMin

int16_t GlyphData::renderOffsetMin = 0

Depth of the glyph bitmap below the baseline (feeds FontOffset::min)

Definition at line 68 of file GuiTextRenderer.h.

◆ renderOffsetX

int16_t GlyphData::renderOffsetX = 0

Horizontal offset from the pen position to the bitmap's left edge.

Definition at line 50 of file GuiTextRenderer.h.

◆ renderOffsetY

int16_t GlyphData::renderOffsetY = 0

Height of the bitmap's top edge above the baseline.

Definition at line 66 of file GuiTextRenderer.h.

◆ texture

void* GlyphData::texture = nullptr

Abstracted texture pointer.

Definition at line 70 of file GuiTextRenderer.h.

◆ textureHeight

uint16_t GlyphData::textureHeight = 0

Height counterpart of textureWidth.

Definition at line 58 of file GuiTextRenderer.h.

◆ textureWidth

uint16_t GlyphData::textureWidth = 0

Pixel dims of the rasterized bitmap/texture, at uiScale - always >= drawWidth/drawHeight, and equal to them when uiScale is 1.0.

Definition at line 57 of file GuiTextRenderer.h.


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