Unravel Engine C++ 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. | |
A structure that describe a glyph.
Definition at line 95 of file font_manager.h.
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.
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.
float gfx::glyph_info::bitmap_scale {} |
Amount to scale a bitmap image glyph.
Definition at line 126 of file font_manager.h.
int32_t gfx::glyph_info::glyph_index {} |
Index for faster retrieval.
Definition at line 98 of file font_manager.h.
float gfx::glyph_info::height {} |
Glyph's height in pixels.
Definition at line 104 of file font_manager.h.
float gfx::glyph_info::offset_x {} |
Glyph's left offset in pixels.
Definition at line 107 of file font_manager.h.
float gfx::glyph_info::offset_y {} |
Glyph's top offset in pixels.
Definition at line 113 of file font_manager.h.
uint16_t gfx::glyph_info::region_index {} |
Region index in the atlas storing textures.
Definition at line 129 of file font_manager.h.
float gfx::glyph_info::width {} |
Glyph's width in pixels.
Definition at line 101 of file font_manager.h.