Update navigation font readme section
This commit is contained in:
parent
04d21dcd93
commit
61a9a97e26
2 changed files with 7 additions and 11 deletions
|
@ -59,6 +59,7 @@ with
|
||||||
* 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`
|
* 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`
|
||||||
|
|
||||||
### Large font
|
### Large font
|
||||||
|
|
||||||
* Name: jetbrains_mono_76
|
* Name: jetbrains_mono_76
|
||||||
* Size: 76
|
* Size: 76
|
||||||
* Bpp: 1 bit-per-pixel
|
* Bpp: 1 bit-per-pixel
|
||||||
|
@ -87,17 +88,12 @@ with
|
||||||
* Size: 48
|
* Size: 48
|
||||||
* Bpp: 1 bit-per-pixel
|
* Bpp: 1 bit-per-pixel
|
||||||
* Do not enable font compression or horizontal subpixel rendering
|
* Do not enable font compression or horizontal subpixel rendering
|
||||||
* 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`
|
* Load the file `icons_sys_48.tff` and specify the following range: `0xe902, 0xe904-0xe907, 0xe90b-0xe90c`
|
||||||
|
|
||||||
#### Navigation font
|
### Navigation font
|
||||||
|
|
||||||
To create the navigtion.ttf I use the web app [icomoon](https://icomoon.io/app)
|
`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.
|
||||||
this app can import the svg files from the folder *src/displayapp/icons/navigation/unique* and create a ttf file the
|
|
||||||
project for the site is *lv_font_navi_80.json* you can import it to add or remove icons
|
|
||||||
|
|
||||||
You can also use the online LVGL tool to create the .c
|
This font must be generated with the `lv_font_conv` tool, which has additional options not available in the online converter.
|
||||||
|
|
||||||
ttf file : navigation.ttf name : lv_font_navi_80 size : 80px Bpp : 2 bit-per-pixel range : 0xe900-0xe929
|
`lv_font_conv --font navigation.ttf -r '0xe900-0xe929' --size 80 --format lvgl --bpp 2 -o lv_font_navi_80.c`
|
||||||
|
|
||||||
$lv_font_conv --font navigation.ttf -r '0xe900-0xe929' --size 80 --format lvgl --bpp 2 --no-prefilter -o
|
|
||||||
lv_font_navi_80.c
|
|
||||||
|
|
|
@ -2623,7 +2623,7 @@ lv_font_t lv_font_navi_80 = {
|
||||||
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
|
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
|
||||||
.subpx = LV_FONT_SUBPX_NONE,
|
.subpx = LV_FONT_SUBPX_NONE,
|
||||||
#endif
|
#endif
|
||||||
#if LV_VERSION_CHECK(7, 4, 0)
|
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
|
||||||
.underline_position = 0,
|
.underline_position = 0,
|
||||||
.underline_thickness = 0,
|
.underline_thickness = 0,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue