I want to display Thai on the interface, but when Thai is displayed with consonants superimposed on vowels and tones, the tone cannot be fully displayed and will be mixed with vowels. How can I display it correctly?
What MCU/Processor/Board and compiler are you using?
I’m using the simulator
What LVGL version are you using?
What do you want to achieve?
Full display of Thai language
What have you tried so far?
I tried different fonts and text heights, but none of them worked
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
try HarfBuzz to tune the glyph. LVGL font engine is fully-grown now. @kisvegabor please think about use harfbuzz or refactor the lv_font_t struct. refactor the get_glyph_dsc interface.
do not just offer one letter and letter_next, offer the full string instead.
You could try to compile Harfbuzz with the compile flag HB_TINY, but what this comes to and if it’s usable, I haven’t tested. But I think the lightest weight shaper is one where you can select languages/features as modules… emWin also has Arabic, Thai and Japanese as things you can enable separately.