Pico Headers
Loading...
Searching...
No Matches
Public Attributes | List of all members
pf_glyph_t Struct Reference

UV coordinates and metrics for a cached glyph. More...

#include <pico_font.h>

Public Attributes

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)
 

Detailed Description

UV coordinates and metrics for a cached glyph.

Member Data Documentation

◆ codepoint

uint32_t pf_glyph_t::codepoint

Unicode codepoint.

◆ size

float pf_glyph_t::size

Font pixel height used when rasterizing.

◆ glyph_index

int pf_glyph_t::glyph_index

stbtt glyph index (0 = missing glyph)

◆ page_x

int pf_glyph_t::page_x

◆ page_y

int pf_glyph_t::page_y

Position inside page (pixels)

◆ page_w

int pf_glyph_t::page_w

◆ page_h

int pf_glyph_t::page_h

Dimensions inside page (pixels)

◆ page

size_t pf_glyph_t::page

Atlas page index.

◆ offset_x

int pf_glyph_t::offset_x

◆ offset_y

int pf_glyph_t::offset_y

Offset from cursor to top-left of bitmap.

◆ advance_x

float pf_glyph_t::advance_x

Horizontal advance in pixels (scaled)

◆ u0

float pf_glyph_t::u0

◆ v0

float pf_glyph_t::v0

◆ u1

float pf_glyph_t::u1

◆ v1

float pf_glyph_t::v1

UV corners (computed after placement)


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