Cogs.Core
Public Attributes | List of all members
Cogs::Core::Font::Character Struct Reference

Defines a single character from a font resource. More...

#include <Font.h>

Public Attributes

uint16_t x0
 
uint16_t y0
 
uint16_t x1
 
uint16_t y1
 
float xOffset
 
float yOffset
 
float xAdvance
 
float xOffset2
 
float yOffset2
 

Detailed Description

Defines a single character from a font resource.

Used to determine how to fetch font data and render characters in a string using the font. MUST have same layout as: stbtt_packedchar (stb\stb_truetype.h)

Definition at line 28 of file Font.h.

Member Data Documentation

◆ x0

uint16_t Cogs::Core::Font::Character::x0

Definition at line 30 of file Font.h.

◆ x1

uint16_t Cogs::Core::Font::Character::x1

Definition at line 32 of file Font.h.

◆ xAdvance

float Cogs::Core::Font::Character::xAdvance

Definition at line 37 of file Font.h.

◆ xOffset

float Cogs::Core::Font::Character::xOffset

Definition at line 35 of file Font.h.

◆ xOffset2

float Cogs::Core::Font::Character::xOffset2

Definition at line 39 of file Font.h.

◆ y0

uint16_t Cogs::Core::Font::Character::y0

Definition at line 31 of file Font.h.

◆ y1

uint16_t Cogs::Core::Font::Character::y1

Definition at line 33 of file Font.h.

◆ yOffset

float Cogs::Core::Font::Character::yOffset

Definition at line 36 of file Font.h.

◆ yOffset2

float Cogs::Core::Font::Character::yOffset2

Definition at line 40 of file Font.h.


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