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

A data describing single Glyph. More...

#include <gp_font.h>

Data Fields

uint8_t width
 Bitmap width in pixels.
 
uint8_t height
 Bitmap heigth in pixels.
 
int8_t bearing_x
 An X offset to be applied before we start drawing.
 
int8_t bearing_y
 An Y offset from baseline to the top of the bitmap.
 
uint8_t advance_x
 An offset to be applied after drawing.
 
uint8_t bitmap []
 A character bitmap.
 

Detailed Description

A data describing single Glyph.

Note that glyph do not necessarily correspond to one character (for example ligature is a glyph but corresponds to at least two characters).

The glyphs are rendered to horizontal baseline, vertical rendering is not supported.

The structure could contain glyphs of different BPP and information about the bitmap format is stored in the font structure. The bitmap lines are byte aligned.

Definition at line 33 of file gp_font.h.

Field Documentation

◆ advance_x

uint8_t gp_glyph::advance_x

An offset to be applied after drawing.

This defines a basepoint for next glyph.

Definition at line 51 of file gp_font.h.

◆ bitmap

uint8_t gp_glyph::bitmap[]

A character bitmap.

This is width * height * depth bits rounded up to closest whole byte.

Definition at line 59 of file gp_font.h.


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