Skip to content

Commit 61a9a97

Browse files
Riksu9000JF002
authored andcommitted
Update navigation font readme section
1 parent 04d21dc commit 61a9a97

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/displayapp/fonts/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ with
5959
* Load the file `JetBrainsMono-Regular.tff` (use the file in this repo to ensure the version matches) and specify the following range: `0x25, 0x30-0x3a`
6060

6161
### Large font
62+
6263
* Name: jetbrains_mono_76
6364
* Size: 76
6465
* Bpp: 1 bit-per-pixel
@@ -87,17 +88,12 @@ with
8788
* Size: 48
8889
* Bpp: 1 bit-per-pixel
8990
* Do not enable font compression or horizontal subpixel rendering
90-
* Load the file `icons_sys_48.tff` (use the file in this repo to ensure the version matches) and specify the following range: `0xe902, 0xe904-0xe907, 0xe90b-0xe90c`
91-
92-
#### Navigation font
91+
* Load the file `icons_sys_48.tff` and specify the following range: `0xe902, 0xe904-0xe907, 0xe90b-0xe90c`
9392

94-
To create the navigtion.ttf I use the web app [icomoon](https://icomoon.io/app)
95-
this app can import the svg files from the folder *src/displayapp/icons/navigation/unique* and create a ttf file the
96-
project for the site is *lv_font_navi_80.json* you can import it to add or remove icons
93+
### Navigation font
9794

98-
You can also use the online LVGL tool to create the .c
95+
`navigtion.ttf` is created with the web app [icomoon](https://icomoon.io/app) by importing the svg files from `src/displayapp/icons/navigation/unique` and generating the font. `lv_font_navi_80.json` is a project file for the site, which you can import to add or remove icons.
9996

100-
ttf file : navigation.ttf name : lv_font_navi_80 size : 80px Bpp : 2 bit-per-pixel range : 0xe900-0xe929
97+
This font must be generated with the `lv_font_conv` tool, which has additional options not available in the online converter.
10198

102-
$lv_font_conv --font navigation.ttf -r '0xe900-0xe929' --size 80 --format lvgl --bpp 2 --no-prefilter -o
103-
lv_font_navi_80.c
99+
`lv_font_conv --font navigation.ttf -r '0xe900-0xe929' --size 80 --format lvgl --bpp 2 -o lv_font_navi_80.c`

src/displayapp/fonts/lv_font_navi_80.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,7 @@ lv_font_t lv_font_navi_80 = {
26232623
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
26242624
.subpx = LV_FONT_SUBPX_NONE,
26252625
#endif
2626-
#if LV_VERSION_CHECK(7, 4, 0)
2626+
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
26272627
.underline_position = 0,
26282628
.underline_thickness = 0,
26292629
#endif

0 commit comments

Comments
 (0)