BSB Developer Docs
Loading...
Searching...
No Matches
font_registry.h File Reference

Loads fonts from storage. More...

#include <lvgl.h>
#include "fonts.h"

Go to the source code of this file.

Macros

#define RECORD_FONT_REGISTRY   "font_registry"
 

Typedefs

typedef struct FontRegistry FontRegistry
 

Functions

const lv_font_t * font_registry_load_font (FontRegistry *instance, const char *font_path)
 
void font_registry_unload_font (FontRegistry *instance, const lv_font_t *font)
 

Detailed Description

Loads fonts from storage.

Function Documentation

◆ font_registry_load_font()

const lv_font_t * font_registry_load_font ( FontRegistry * instance,
const char * font_path )
Parameters
[in,out]instanceFontRegistry instance
[in]font_pathPath to the font in Storage in LVGL format
Returns
The requested font, or a fallback font if it couldn't be loaded
Warning
Only use this function from widgets internally

◆ font_registry_unload_font()

void font_registry_unload_font ( FontRegistry * instance,
const lv_font_t * font )
Parameters
[in,out]instanceFontRegistry instance
[in]fontPreviously loaded font
Warning
Only use this function from widgets internally