libgui 2.01
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
 Horizontal offset from the pen position to the bitmap's left edge.
 
uint16_t glyphAdvanceX
 Horizontal pen advance after this glyph.
 
uint16_t glyphAdvanceY
 Vertical pen advance after this glyph.
 
uint32_t glyphIndex
 FreeType glyph index.
 
uint16_t textureWidth
 Pixel dims of the rasterized bitmap/texture, at uiScale - always >= drawWidth/drawHeight, and equal to them when uiScale is 1.0.
 
uint16_t textureHeight
 Height counterpart of textureWidth.
 
uint16_t drawWidth
 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
 Height counterpart of drawWidth.
 
int16_t renderOffsetY
 Height of the bitmap's top edge above the baseline.
 
int16_t renderOffsetMax
 Height of the glyph bitmap above the baseline (feeds FontOffset::max)
 
int16_t renderOffsetMin
 Depth of the glyph bitmap below the baseline (feeds FontOffset::min)
 
void * texture
 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

Height counterpart of drawWidth.

Definition at line 64 of file GuiTextRenderer.h.

◆ drawWidth

uint16_t GlyphData::drawWidth

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

Horizontal pen advance after this glyph.

Definition at line 51 of file GuiTextRenderer.h.

◆ glyphAdvanceY

uint16_t GlyphData::glyphAdvanceY

Vertical pen advance after this glyph.

Definition at line 52 of file GuiTextRenderer.h.

◆ glyphIndex

uint32_t GlyphData::glyphIndex

FreeType glyph index.

Definition at line 53 of file GuiTextRenderer.h.

◆ renderOffsetMax

int16_t GlyphData::renderOffsetMax

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

Definition at line 67 of file GuiTextRenderer.h.

◆ renderOffsetMin

int16_t GlyphData::renderOffsetMin

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

Definition at line 68 of file GuiTextRenderer.h.

◆ renderOffsetX

int16_t GlyphData::renderOffsetX

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

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

Definition at line 66 of file GuiTextRenderer.h.

◆ texture

void* GlyphData::texture

Abstracted texture pointer.

Definition at line 70 of file GuiTextRenderer.h.

◆ textureHeight

uint16_t GlyphData::textureHeight

Height counterpart of textureWidth.

Definition at line 58 of file GuiTextRenderer.h.

◆ textureWidth

uint16_t GlyphData::textureWidth

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: