Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gfx::glyph_info Struct Reference

A structure that describe a glyph. More...

#include <font_manager.h>

Public Attributes

int32_t glyph_index {}
 Index for faster retrieval.
 
float width {}
 Glyph's width in pixels.
 
float height {}
 Glyph's height in pixels.
 
float offset_x {}
 Glyph's left offset in pixels.
 
float offset_y {}
 
float advance_x {}
 
float advance_y {}
 
float bitmap_scale {}
 Amount to scale a bitmap image glyph.
 
uint16_t region_index {}
 Region index in the atlas storing textures.
 

Detailed Description

A structure that describe a glyph.

Definition at line 95 of file font_manager.h.

Member Data Documentation

◆ advance_x

float gfx::glyph_info::advance_x {}

For horizontal text layouts, this is the unscaled horizontal distance in pixels used to increment the pen position when the glyph is drawn as part of a string of text.

Definition at line 118 of file font_manager.h.

◆ advance_y

float gfx::glyph_info::advance_y {}

For vertical text layouts, this is the unscaled vertical distance in pixels used to increment the pen position when the glyph is drawn as part of a string of text.

Definition at line 123 of file font_manager.h.

◆ bitmap_scale

float gfx::glyph_info::bitmap_scale {}

Amount to scale a bitmap image glyph.

Definition at line 126 of file font_manager.h.

◆ glyph_index

int32_t gfx::glyph_info::glyph_index {}

Index for faster retrieval.

Definition at line 98 of file font_manager.h.

◆ height

float gfx::glyph_info::height {}

Glyph's height in pixels.

Definition at line 104 of file font_manager.h.

◆ offset_x

float gfx::glyph_info::offset_x {}

Glyph's left offset in pixels.

Definition at line 107 of file font_manager.h.

◆ offset_y

float gfx::glyph_info::offset_y {}

Glyph's top offset in pixels.

Remarks
This is the distance from the baseline to the top-most glyph scan line, upwards y coordinates being positive.

Definition at line 113 of file font_manager.h.

◆ region_index

uint16_t gfx::glyph_info::region_index {}

Region index in the atlas storing textures.

Definition at line 129 of file font_manager.h.

◆ width

float gfx::glyph_info::width {}

Glyph's width in pixels.

Definition at line 101 of file font_manager.h.


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