Go to the documentation of this file.
10 #ifndef HAL_GFX_FONT_H__
11 #define HAL_GFX_FONT_H__
22 #define HAL_GFX_ALIGNX_LEFT (0x00U)
23 #define HAL_GFX_ALIGNX_RIGHT (0x01U)
24 #define HAL_GFX_ALIGNX_CENTER (0x02U)
25 #define HAL_GFX_ALIGNX_JUSTIFY (0x03U)
26 #define HAL_GFX_ALIGNX_MASK (0x03U)
27 #define HAL_GFX_ALIGNY_TOP (0x00U)
28 #define HAL_GFX_ALIGNY_BOTTOM (0x04U)
29 #define HAL_GFX_ALIGNY_CENTER (0x08U)
30 #define HAL_GFX_ALIGNY_JUSTIFY (0x0cU)
31 #define HAL_GFX_ALIGNY_MASK (0x0cU)
32 #define HAL_GFX_TEXT_WRAP (0x10U)
132 void hal_gfx_print(
const char *str,
int x,
int y,
int w,
int h, uint32_t fg_col, uint32_t align);
160 #endif // HAL_GFX_FONT_H__
const hal_gfx_font_range_t * ranges
Font Kerning setting Structure.
Font range setting Structure.
const hal_gfx_glyph_t * glyphs
The base structure of gpu memory.
void hal_gfx_print(const char *str, int x, int y, int w, int h, uint32_t fg_col, uint32_t align)
Print pre-formatted text.
Font glyph setting Structure.
int hal_gfx_string_get_bbox(const char *str, int *w, int *h, int max_w, uint32_t wrap)
Get the bounding box's width and height of a string.
const hal_gfx_kern_pair_t * kern_pairs
void hal_gfx_print_to_position(const char *str, int *pos_x, int *pos_y, int x, int y, int w, int h, uint32_t fg_col, uint32_t align)
Print pre-formatted text.
void hal_gfx_bind_font(hal_gfx_font_t *font)
Bind the font to use in future hal_gfx_print() calls.