lv_font_conv
lv_font_conv copied to clipboard
Online font converter header issue with V9
LVGL version
V9.0.0
What happened?
The online font converter tool has a small glitch when using it with V9. If you try to include the fonts in your project you may get an header include error. But it's easy to fix:
The header include macros from the converter tool
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "../../lvgl.h"
#endif
should be replaced with:
#ifdef __has_include
#if __has_include("lvgl.h")
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
#define LV_LVGL_H_INCLUDE_SIMPLE
#endif
#endif
#endif
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
How to reproduce?
No response