Small improvement in generate-fonts.py following code review.
Add lv_img_conf in Docker image to build resources at build time.
This commit is contained in:

committed by
JF

parent
cbe2f08cf7
commit
e2a3d9f0c7
@@ -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:
|
||||
|
Reference in New Issue
Block a user