From d967ed7d9087900869c686f07e257c3836178eaf Mon Sep 17 00:00:00 2001 From: Yehoshua Pesach Wallach Date: Sun, 24 Apr 2022 17:36:11 +0300 Subject: [PATCH] fontgen: move lv_font_conv doc --- doc/buildAndProgram.md | 5 +++++ src/displayapp/fonts/README.md | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/buildAndProgram.md b/doc/buildAndProgram.md index feef9f6d..42c98dfb 100644 --- a/doc/buildAndProgram.md +++ b/doc/buildAndProgram.md @@ -12,6 +12,11 @@ To build this project, you'll need: python -m pip install -r tools/mcuboot/requirements.txt ``` - A reasonably recent version of CMake (I use 3.16.5) + - lv_font_conv, to generate the font .c files + - see [lv_font_conv](https://github.com/lvgl/lv_font_conv#install-the-script) + - install npm (commonly done via the package manager) + - install lv_font_conv: `npm i lv_font_conv -g` + - if installed non-globally, make sure `lv_font_conv` is in the PATH ## Build steps ### Clone the repo diff --git a/src/displayapp/fonts/README.md b/src/displayapp/fonts/README.md index 18fa618e..3b998e22 100644 --- a/src/displayapp/fonts/README.md +++ b/src/displayapp/fonts/README.md @@ -7,12 +7,7 @@ ## Generate the fonts: * Make sure you have installed lv_font_conv, and it's in the PATH - * `npm i lv_font_conv` - * `export PATH="$PATH:$PWD/node_modules/.bin"` - * *OR* globally: - * `npm i -g lv_font_conv` - * `export PATH="$PATH:$HOME/.local/bin"` (if not already in the path) - * or in any other path you choose. + * See `doc/buildAndProgram.md` * run the `generate.py` script, while in the folder. * it has a `-h` flag to show usage, nontheless: `python generate.py fonts.json`