-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0871cda
commit b0f59d7
Showing
3 changed files
with
45,607 additions
and
38,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,22 +38,25 @@ | |
scr = lv.screen_active() | ||
scr.clean() | ||
|
||
myfont_cn = lv.font_load("S:%s/font/font-PHT-cn-20.bin" % script_path) | ||
myfont_cn = lv.font_t() | ||
lv.font_load(myfont_cn, "S:%s/font/font-PHT-cn-20.bin" % script_path) | ||
|
||
label1 = lv.label(scr) | ||
label1.set_style_text_font(myfont_cn, 0) # set the font | ||
label1.set_text("上中下乎") | ||
label1.align(lv.ALIGN.CENTER, 0, -25) | ||
|
||
myfont_en = lv.font_load("S:%s/font/font-PHT-en-20.bin" % script_path) | ||
myfont_en = lv.font_t() | ||
lv.font_load(myfont_en, "S:%s/font/font-PHT-en-20.bin" % script_path) | ||
This comment has been minimized.
Sorry, something went wrong.
kdschlosser
Contributor
|
||
|
||
label2 = lv.label(scr) | ||
label2.set_style_text_font(myfont_en, 0) # set the font | ||
label2.set_text("Hello LVGL!") | ||
label2.align(lv.ALIGN.CENTER, 0, 25) | ||
|
||
|
||
myfont_jp = lv.font_load("S:%s/font/font-PHT-jp-20.bin" % script_path) | ||
myfont_jp= lv.font_t() | ||
lv.font_load(myfont_jp, "S:%s/font/font-PHT-jp-20.bin" % script_path) | ||
This comment has been minimized.
Sorry, something went wrong.
kdschlosser
Contributor
|
||
|
||
label3 = lv.label(scr) | ||
label3.set_style_text_font(myfont_jp, 0) # set the font | ||
|
Oops, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kdschlosserNov 14, 2023
Contributor