@@ -474,6 +474,15 @@ Let's use the Zig Compiler to compile `lv_label.c` from C to WebAssembly....
474474
475475- Add ` -DLV_MEM_CUSTOM=1 ` (because we're using ` malloc ` instead of LVGL's TLSF Allocator)
476476
477+ - Set the Default Font to Montserrat 20...
478+
479+ ``` text
480+ -DLV_FONT_MONTSERRAT_14=1 \
481+ -DLV_FONT_MONTSERRAT_20=1 \
482+ -DLV_FONT_DEFAULT_MONTSERRAT_20=1 \
483+ -DLV_USE_FONT_PLACEHOLDER=1 \
484+ ```
485+
477486- Add ` -DLV_USE_LOG=1 ` (to enable logging)
478487
479488- Add ` -DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE ` (for detailed logging)
@@ -513,6 +522,10 @@ zig cc \
513522 -lc \
514523 -DFAR= \
515524 -DLV_MEM_CUSTOM=1 \
525+ -DLV_FONT_MONTSERRAT_14=1 \
526+ -DLV_FONT_MONTSERRAT_20=1 \
527+ -DLV_FONT_DEFAULT_MONTSERRAT_20=1 \
528+ -DLV_USE_FONT_PLACEHOLDER=1 \
516529 -DLV_USE_LOG=1 \
517530 -DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE \
518531 -DLV_LOG_TRACE_OBJ_CREATE=1 \
@@ -575,6 +588,10 @@ Let's ask Zig Compiler to link `lv_label.o` with our Zig LVGL App [`lvglwasm.zig
575588 -lc \
576589 -DFAR= \
577590 -DLV_MEM_CUSTOM=1 \
591+ -DLV_FONT_MONTSERRAT_14=1 \
592+ -DLV_FONT_MONTSERRAT_20=1 \
593+ -DLV_FONT_DEFAULT_MONTSERRAT_20=1 \
594+ -DLV_USE_FONT_PLACEHOLDER=1 \
578595 -DLV_USE_LOG=1 \
579596 -DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE \
580597 -DLV_LOG_TRACE_OBJ_CREATE=1 \
0 commit comments