feat(color): add Korean font and localization support (#6118)
Co-authored-by: Peter Feerick <pfeerick@users.noreply.github.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
568d6f1105
commit
9788d6254f
@@ -66,7 +66,7 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
0x9, 0xfa, 0xf, 0xd7, 0xf8, 0x3e, 0xf2, 0xb,
|
||||
0x83, 0x9f, 0x6, 0xf0, 0x73, 0xe0, 0x9e, 0xf,
|
||||
0x79, 0x1f, 0x7, 0xcf, 0xaf, 0x21, 0xfb, 0xf0,
|
||||
0x7f, 0x5f, 0x41, 0xfa, 0xf3, 0xe8, 0x2f, 0xf,
|
||||
0x7f, 0x3f, 0x41, 0xfa, 0xf3, 0xe8, 0x2f, 0xf,
|
||||
0x82, 0xf2, 0x3c, 0x5c, 0x13, 0xe6, 0xe3, 0xc8,
|
||||
0x6b, 0xf0, 0x2e, 0xe, 0xbd, 0x1, 0xf2, 0x1a,
|
||||
0xf8, 0x2b, 0xd5, 0x7f, 0x41, 0xaf, 0xc8, 0x3c,
|
||||
@@ -739,11 +739,11 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
|
||||
/* U+F00D "" */
|
||||
0x2, 0x1f, 0xfc, 0x3f, 0x83, 0xf3, 0xe4, 0xfe,
|
||||
0xf, 0x5f, 0x9f, 0xf0, 0x6b, 0xf9, 0x5f, 0xe0,
|
||||
0x5f, 0xd0, 0x1f, 0xf5, 0xfd, 0x6, 0x7f, 0xfd,
|
||||
0x7, 0x9f, 0xfd, 0x7, 0xe7, 0xfe, 0xf, 0xeb,
|
||||
0xfe, 0xf, 0xd7, 0xff, 0x7, 0xaf, 0xff, 0x83,
|
||||
0x5f, 0xd3, 0xfe, 0x3, 0xfd, 0x1, 0xff, 0x1f,
|
||||
0xf, 0x3f, 0x9f, 0xf0, 0x67, 0xf9, 0x5f, 0xe0,
|
||||
0x3f, 0xd0, 0x1f, 0xf5, 0xfd, 0x6, 0x7f, 0xfd,
|
||||
0x7, 0x9f, 0xfd, 0x7, 0xe7, 0xfe, 0xf, 0xe7,
|
||||
0xfe, 0xf, 0xcf, 0xff, 0x7, 0x9f, 0xff, 0x83,
|
||||
0x3f, 0xd3, 0xfe, 0x3, 0xfd, 0x1, 0xff, 0x1f,
|
||||
0xd0, 0x67, 0xf9, 0xbe, 0x83, 0xcf, 0xe0, 0x5c,
|
||||
0x1f, 0x9f, 0x21, 0xff, 0xc6,
|
||||
|
||||
@@ -799,9 +799,9 @@ static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
0xc8, 0x7f, 0xf6, 0x80,
|
||||
|
||||
/* U+F7C2 "" */
|
||||
0xe, 0xbf, 0xfd, 0x7, 0x5f, 0xff, 0xc0, 0x82,
|
||||
0xbf, 0xff, 0x84, 0xb, 0xc9, 0x60, 0xe0, 0x7c,
|
||||
0x5f, 0x25, 0x83, 0x81, 0xf5, 0xf9, 0x2c, 0x1c,
|
||||
0xe, 0x7f, 0xfd, 0x7, 0x3f, 0xff, 0xc0, 0x82,
|
||||
0x7f, 0xff, 0x84, 0x7, 0xc9, 0x60, 0xe0, 0x7c,
|
||||
0x3f, 0x25, 0x83, 0x81, 0xf3, 0xf9, 0x2c, 0x1c,
|
||||
0xf, 0xfc, 0x96, 0xe, 0x7, 0xfe, 0xa7, 0xa9,
|
||||
0xea, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xfe, 0x95, 0xff, 0xfc, 0x48, 0xbf,
|
||||
@@ -1187,9 +1187,12 @@ static const lv_font_fmt_txt_kern_classes_t kern_classes =
|
||||
* ALL CUSTOM DATA
|
||||
*--------------------*/
|
||||
|
||||
#if LV_VERSION_CHECK(8, 0, 0)
|
||||
#if LVGL_VERSION_MAJOR == 8
|
||||
/*Store all the custom data of the font*/
|
||||
static lv_font_fmt_txt_glyph_cache_t cache;
|
||||
#endif
|
||||
|
||||
#if LVGL_VERSION_MAJOR >= 8
|
||||
static const lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
#else
|
||||
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
@@ -1203,18 +1206,19 @@ static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
.bpp = 2,
|
||||
.kern_classes = 1,
|
||||
.bitmap_format = 2,
|
||||
#if LV_VERSION_CHECK(8, 0, 0)
|
||||
#if LVGL_VERSION_MAJOR == 8
|
||||
.cache = &cache
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*-----------------
|
||||
* PUBLIC FONT
|
||||
*----------------*/
|
||||
|
||||
/*Initialize a public general font descriptor*/
|
||||
#if LV_VERSION_CHECK(8, 0, 0)
|
||||
#if LVGL_VERSION_MAJOR >= 8
|
||||
const lv_font_t lv_font_bl = {
|
||||
#else
|
||||
lv_font_t lv_font_bl = {
|
||||
@@ -1230,7 +1234,11 @@ lv_font_t lv_font_bl = {
|
||||
.underline_position = -2,
|
||||
.underline_thickness = 1,
|
||||
#endif
|
||||
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
|
||||
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
|
||||
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
|
||||
.fallback = NULL,
|
||||
#endif
|
||||
.user_data = NULL,
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user