lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
54 stars 38 forks source link

[spec] font convertor #19

Closed puzrin closed 5 years ago

puzrin commented 5 years ago

Dev memo, to remember important parts.

Desired features


CLI params.

Font params are grouped to current font until new font option found.

Common:

Fonts:

TBD

kisvegabor commented 5 years ago

It's not clear how to define multiple combinations of fonts + glyphs + remap in CLI.

What about using a JSON config to describe complex arguments? It would allow to easily run the script again later with same config.

puzrin commented 5 years ago

What about using a JSON config to describe complex arguments? It would allow to easily run the script again later with same config.

I'd say CLI script without all options support would look a bit "unprofessional" :). I have such ugly CLI wrappers for js-yaml & markdown-it, but always say those are for demonstration only and not officially supported.

In other words, JSON config is possible, but i'd like to try something better first.

kisvegabor commented 5 years ago

Okay, you have more experience in this regards. Let's keep the config file as plan B if there won't be a better solution.

stale[bot] commented 5 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kisvegabor commented 5 years ago

Not stale.

puzrin commented 5 years ago

Seems found solution for CLI. Updated first pots.

@kisvegabor Could you create repo for font convertor and give me full access there?

kisvegabor commented 5 years ago

Done: https://github.com/littlevgl/lv_font_converter

puzrin commented 5 years ago

https://github.com/littlevgl/lv_font_converter/issues/1 https://github.com/littlevgl/lv_font_converter/issues/2

puzrin commented 5 years ago

@kisvegabor please enable travis-ci for https://github.com/littlevgl/lv_font_converter

embeddedt commented 5 years ago

@puzrin I just tried to enable it. Did I do it properly?

puzrin commented 5 years ago

Not sure https://travis-ci.org/littlevgl/lv_font_converter - no activity

This should be enabled via travis account page https://travis-ci.org/account/repositories. Probably, "owner" permissions required.

embeddedt commented 5 years ago

@puzrin I had enabled it on https://travis-ci.com before. Now it is enabled on both.

puzrin commented 5 years ago

Now works