Code Monkey home page Code Monkey logo

Comments (5)

kisvegabor avatar kisvegabor commented on June 12, 2024

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.

Zaltora avatar Zaltora commented on June 12, 2024

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.

kisvegabor avatar kisvegabor commented on June 12, 2024

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.

stale avatar stale commented on June 12, 2024

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.

embeddedt avatar embeddedt commented on June 12, 2024

This issue is very old. Please open a new one to continue the discussion.

from lv_utils.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.