23 lines
765 B
C
23 lines
765 B
C
#ifndef FONT_H
|
|
#define FONT_H
|
|
|
|
#include "stdint.h"
|
|
#include "display.h"
|
|
#include "lvgl.h"
|
|
|
|
// Font declarations - fonts are defined in separate .c files to avoid static variable conflicts
|
|
#if LVGL_VERSION_MAJOR >= 8
|
|
extern const lv_font_t roboto_bold_font;
|
|
extern const lv_font_t roboto_bold_large_font;
|
|
extern const lv_font runescape_font;
|
|
#else
|
|
extern lv_font_t roboto_bold_font;
|
|
extern lv_font_t roboto_bold_large_font;
|
|
extern lv_font_t runescape_font;
|
|
#endif
|
|
|
|
uint16_t draw_character(pixel_t *framebuffer, const lv_font_t *font, const uint16_t x_loc, const uint16_t y_loc, const char character, pixel_t color);
|
|
|
|
void draw_string(pixel_t *framebuffer, const lv_font_t *font, const uint16_t x_loc, const uint16_t y_loc, const char *string, pixel_t color);
|
|
|
|
#endif |