diff options
| author | Jean-François Milants <jf@codingfield.com> | 2022-09-11 12:43:30 +0200 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2022-09-11 14:44:36 +0200 |
| commit | e2a3d9f0c7a531d129501325e793fdd634babba8 (patch) | |
| tree | 761da8923c45bbad0b8c31fcfe72fb015198dcc3 /src/resources | |
| parent | cbe2f08cf7e9cd7bbfe3162e254db9648460ae58 (diff) | |
Small improvement in generate-fonts.py following code review.
Add lv_img_conf in Docker image to build resources at build time.
Diffstat (limited to 'src/resources')
| -rwxr-xr-x | src/resources/generate-fonts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/generate-fonts.py b/src/resources/generate-fonts.py index d6b47ab2..20408166 100755 --- a/src/resources/generate-fonts.py +++ b/src/resources/generate-fonts.py @@ -20,7 +20,7 @@ class Source(object): def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, format: str, sources: typing.List[Source], compress:bool=False): if format != "lvgl" and format != "bin": - format = "lvgl" + format = "bin" if dest.lower().endswith(".bin") else "lvgl" args = [lv_font_conv, '--size', str(size), '--output', dest, '--bpp', str(bpp), '--format', format] if not compress: |
