GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_glyphs Struct Reference

An unicode glyphs block. More...

#include <gp_font.h>

Data Fields

void * glyphs
 Pointer to glyph bitmap buffer.
 
gp_glyph_offset * offsets
 Offsets to the glyph data.
 
gp_glyph_offset offset
 An offset to the glyph data.
 
uint32_t min_glyph
 First character in glyphs table.
 
uint32_t max_glyph
 Last character in glyphs table.
 

Detailed Description

An unicode glyphs block.

Definition at line 108 of file gp_font.h.

Field Documentation

◆ glyphs

void* gp_glyphs::glyphs

Pointer to glyph bitmap buffer.

This is a buffer with all glyph pixmaps.

Definition at line 114 of file gp_font.h.

◆ max_glyph

uint32_t gp_glyphs::max_glyph

Last character in glyphs table.

For table 0 which is ASCII this is set to 0x7f.

Definition at line 142 of file gp_font.h.

◆ min_glyph

uint32_t gp_glyphs::min_glyph

First character in glyphs table.

For table 0 which is ASCII this is set to 0x20.

Definition at line 136 of file gp_font.h.

◆ offset

gp_glyph_offset gp_glyphs::offset

An offset to the glyph data.

If all offsets are the same gp_glyphs::offsets is NULL and the glyphs are stored at multiples of this offset.

Definition at line 129 of file gp_font.h.

◆ offsets

gp_glyph_offset* gp_glyphs::offsets

Offsets to the glyph data.

If offsets is NULL offset is the same for all glyphs and saved in gp_glyphs::offset instead.

Definition at line 122 of file gp_font.h.


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