Comments (5)
Hi,
Thank you for the feedback!
Using the generated fonts
There is a short guide on the font converter's page: "How to use the generated fonts in LittlevGL?" Have you tried it?
Symbols
This part
#if LV_TXT_UTF8
.unicode_first = 61440, First Unicode letter in this font * /
.unicode_last = 62190, Last Unicode letter in this font * /
#else
.unicode_first = 192, First Unicode letter in this font * /
.unicode_last = 241, Last Unicode letter in this font * /
#endif
is a special case because the symbols are located at different locations with and without UTF8 support. As it's a special case the generator doesn't adds it automatically. It's the same with ..unicode_list
, .get_bitmap
and .get_width
.
It seems useful to add checkbox like "Generate symbol font" which could make these changes automatically. What do you think?
from lv_utils.
I see the documentation but i don' no where put my generated files. Tell me if i am right
Can be possible to add the font file in my app, then use a lvgl function to register this whitout need to change the font file.
or I need just put this in my app LV_FONT_DECLAER(my_font_name)
?
That disturb me to see #include "../lv_font.h"
into the generated font.
Automatic changes with a button will be great with a warning if is not possible (when too much symbol for ASCII). Maybe add some notes about it too. :)
from lv_utils.
You can copy it anywhere in you project. You just have to declare it (LV_FONT_DECLAER
) where you want to use it. No modification required in the files
That disturb me to see #include "../lv_font.h" into the generated font.
If you generate a built-in font then the converter supposes that you will use it as part of LittelvGL.
But for not built-in fonts you should see #include "lvgl/lv_misc/lv_font.h"
Automatic changes with a button will be great with a warning if is not possible (when too much symbol for ASCII). Maybe add some notes about it too. :)
As the mapping of built in symbols is hard coded in lv_symbol_defs.h
it is not possible to show warning because if you generate a compatible built-in font than you should use this mapping. But if you use other symbol mapping (not the as in lv_symbol_defs.h
) than it's up to you where to place it but then they won't be compatible with the defines in lv_symbol_defs.h
.
from lv_utils.
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.
from lv_utils.
This issue is very old. Please open a new one to continue the discussion.
from lv_utils.
Related Issues (19)
- Problem with image converter HOT 2
- Utils review/revisit HOT 19
- LV_ATTRIBUTE_MEM_ALIGN in font converter HOT 2
- [spec] font convertor HOT 13
- image converter throws syntax errors HOT 5
- Littlevgl.com HOT 3
- Font generator generates lv_font_t initialisation in wrong order HOT 2
- Cannot covert Noto Emoji HOT 3
- file bdf_font_converter.py seems too old HOT 1
- PHP Fatal when trying to convert a jpg image HOT 17
- Can the old font converters be removed from this repository? HOT 3
- Colors inverted between online tool and offline tool with indexed_4 / 16 colors HOT 9
- the Online Image to C Array Converter has bug in converting images to binary files HOT 3
- a document page not found HOT 5
- lv_utils for nodejs HOT 24
- font converter and monospace fonts HOT 8
- Font generate binary HOT 2
- font_conv_core.php has undefined variable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lv_utils.