pntr
Image manipulation library
pntr_font Struct Reference

Data Fields

pntr_imageatlas
 
pntr_rectanglesrcRects
 
pntr_rectangleglyphRects
 
char * characters
 
int charactersLen
 

Detailed Description

Font used to render text.

If PNTR_ENABLE_UTF8 is enabled, will allow loading fonts with UTF-8 support.

See also
pntr_load_font_tty()
pntr_load_font_ttf()
pntr_load_font_bmf()
PNTR_ENABLE_UTF8

Field Documentation

◆ atlas

pntr_image* pntr_font::atlas

The image used for the character atlas for the font.

◆ characters

char* pntr_font::characters

An array of characters that are available in the font's atlas.

◆ charactersLen

int pntr_font::charactersLen

The number of characters that the font implements.

◆ glyphRects

pntr_rectangle* pntr_font::glyphRects

How the glyph appears when rendering.

◆ srcRects

pntr_rectangle* pntr_font::srcRects

The glyph source rectangles on the atlas.