-
QuestionsI make a label in Unicode : "Chiếu điểm" actually I got just "Chiêu iêm" Pls help me how to fix We only keep bug reports and active requests being worked on in the issues tracker. For general questions we have opened the discussion forum on github and #openHASP channel on Discord. If you are not sure if your question is related to the code development, feel free to ask! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
I suppose these letters are from the Vietnamese language?
I'm not sure if all glyphs are available in Roboto Condensed, so you will need to test it. |
Beta Was this translation helpful? Give feedback.
-
I have added the following Vietnamese characters to
It is important to encode the accents and characters into one single codepoint for LVGL to render the correct letter. This can be achieved by converting UTF-8 text to Unicode NFC format, NFC means the characters are decomposed and then re-composed by canonical equivalence. This conversion needs to be done in advance, otherwise ArduinoJSON or LVGL will treat the character and accents separately... For example:
Then |
Beta Was this translation helpful? Give feedback.
-
You need to add this code to #define HASP_FONT_1 robotocondensed_regular_16_vietnamese // Use available fonts from src/fonts directory
#define HASP_FONT_2 robotocondensed_regular_24_vietnamese
#define HASP_FONT_3 robotocondensed_regular_32_vietnamese
#define HASP_FONT_4 robotocondensed_regular_38_vietnamese
#define ROBOTOCONDENSED_REGULAR_16_VIETNAMESE 1 // Enable the selected fonts
#define ROBOTOCONDENSED_REGULAR_24_VIETNAMESE 1
#define ROBOTOCONDENSED_REGULAR_32_VIETNAMESE 1
#define ROBOTOCONDENSED_REGULAR_38_VIETNAMESE 1
#define HASP_FONT_SIZE_1 16 // 12 orig // Define used font sizes
#define HASP_FONT_SIZE_2 24 // 16 orig
#define HASP_FONT_SIZE_3 32 // 24 orig
#define HASP_FONT_SIZE_4 38 // 32 orig |
Beta Was this translation helpful? Give feedback.
-
Thanks you. I try |
Beta Was this translation helpful? Give feedback.
-
I have included an online Font Converter tool into the new documentation for the Feel free to try it out and provide feedback here. |
Beta Was this translation helpful? Give feedback.
You need to add this code to
include\user_config_override.h
for the Vietnamese font to be used: