UV coordinates and metrics for a cached glyph.
More...
#include <pico_font.h>
|
| uint32_t | codepoint |
| | Unicode codepoint.
|
| |
| float | size |
| | Font pixel height used when rasterizing.
|
| |
| int | glyph_index |
| | stbtt glyph index (0 = missing glyph)
|
| |
| int | page_x |
| |
| int | page_y |
| | Position inside page (pixels)
|
| |
| int | page_w |
| |
| int | page_h |
| | Dimensions inside page (pixels)
|
| |
| size_t | page |
| | Atlas page index.
|
| |
| int | offset_x |
| |
| int | offset_y |
| | Offset from cursor to top-left of bitmap.
|
| |
| float | advance_x |
| | Horizontal advance in pixels (scaled)
|
| |
| float | u0 |
| |
| float | v0 |
| |
| float | u1 |
| |
| float | v1 |
| | UV corners (computed after placement)
|
| |
UV coordinates and metrics for a cached glyph.
◆ codepoint
| uint32_t pf_glyph_t::codepoint |
◆ size
Font pixel height used when rasterizing.
◆ glyph_index
| int pf_glyph_t::glyph_index |
stbtt glyph index (0 = missing glyph)
◆ page_x
◆ page_y
Position inside page (pixels)
◆ page_w
◆ page_h
Dimensions inside page (pixels)
◆ page
◆ offset_x
◆ offset_y
Offset from cursor to top-left of bitmap.
◆ advance_x
| float pf_glyph_t::advance_x |
Horizontal advance in pixels (scaled)
◆ u0
◆ v0
◆ u1
◆ v1
UV corners (computed after placement)
The documentation for this struct was generated from the following file: