Skip to content

Commit 2de0f4f

Browse files
committed
Dont know if Im doing this correctly
1 parent 6608cf9 commit 2de0f4f

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/displayapp/fonts/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(FONTS jetbrains_mono_42 jetbrains_mono_76 jetbrains_mono_bold_20
22
jetbrains_mono_extrabold_compressed lv_font_sys_48
3-
open_sans_light fontawesome_weathericons)
3+
open_sans_light fontawesome_weathericons prime)
44
find_program(LV_FONT_CONV "lv_font_conv" NO_CACHE REQUIRED
55
HINTS "${CMAKE_SOURCE_DIR}/node_modules/.bin")
66
message(STATUS "Using ${LV_FONT_CONV} to generate font files")

src/displayapp/fonts/fonts.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,18 @@
7373
],
7474
"bpp": 1,
7575
"size": 25
76+
<<<<<<< HEAD
77+
=======
78+
},
79+
"prime": {
80+
"sources": [
81+
{
82+
"file": "Karnivore.ttf",
83+
"symbols": "0123456789:"
84+
}
85+
],
86+
"bpp": 1,
87+
"size": 85
88+
>>>>>>> faf39851 (correctly include new font)
7689
}
7790
}

src/libs/lv_conf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ typedef void* lv_indev_drv_user_data_t; /*Type of user data in the in
419419
LV_FONT_DECLARE(jetbrains_mono_76) \
420420
LV_FONT_DECLARE(open_sans_light) \
421421
LV_FONT_DECLARE(fontawesome_weathericons) \
422-
LV_FONT_DECLARE(lv_font_sys_48)
422+
LV_FONT_DECLARE(lv_font_sys_48) \
423+
LV_FONT_DECLARE(prime)
423424

424425
/* Enable it if you have fonts with a lot of characters.
425426
* The limit depends on the font size, font face and bpp

0 commit comments

Comments
 (0)