From fe3025ffd5552cb58aca6dd5f1a7eaaa9c32440c Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 9 Sep 2021 17:32:47 +0200 Subject: [PATCH] Add currently known shortcomings --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d705937..69e8dee 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,11 @@ The biggest obstacle is input processing. [lv_drivers] provides an evdev interfa ... everything else ... +## Discovered shortcomings compared to SDL2 + +- Fonts cannot be loaded at runtime. In order for LVGL to render them, they have to be converted to static and font-size-dependent bitmaps first. That means osk-sdl's font configuration option cannot be replicated. +- A corollary of the above: Required font sizes need to be known at compile time. In order to support the larger and smaller end of the mobile screen spectrum, bitmaps of the same font at different font sizes might have to be included. + # Upstreaming As far as feasible and sensible, [lvgl] and [lv_drivers] fixes and enhancements are being upstreamed. Ideally all code outside of `main.c` should be contributed back but I'm not yet sure if that will be possible.