Code Monkey home page Code Monkey logo

Comments (8)

sdalu avatar sdalu commented on June 12, 2024 1

For people browsing the issues, code is available here:
https://github.com/littlevgl/lv_utils/blob/master/hex2lvfont.rb

from lv_utils.

kisvegabor avatar kisvegabor commented on June 12, 2024

Yes, it is now losing the monospace characteristic and it's a good feature to add!
I can't promise that I will have time for it in the next days.

Would somebody like to contribute in it?

from lv_utils.

sdalu avatar sdalu commented on June 12, 2024

Got a small ruby program, generating 1-bpp font from .hex
Need some testing, will post it

from lv_utils.

kisvegabor avatar kisvegabor commented on June 12, 2024

It's great!
We can use it until this feature isn't implemented in the "original" font converter.

from lv_utils.

ruslanproject avatar ruslanproject commented on June 12, 2024

what is .hex format for font?
try ttf and bdf, invalid format for hex2lvfont.rb
I dont know ruby, cannt understand it syntax.

monospace font realy actual

from lv_utils.

sdalu avatar sdalu commented on June 12, 2024

The hex2lvfont.rb converter only deal with font in hex format [1].
The two fonts I know that are defined this way are:

[1] https://en.wikipedia.org/wiki/GNU_Unifont#The_.hex_font_format

from lv_utils.

kisvegabor avatar kisvegabor commented on June 12, 2024

I updated the font converter with monospace feature.
If you tested it and have any remarks please open a new issue for it.

from lv_utils.

kisvegabor avatar kisvegabor commented on June 12, 2024

Based on the suggestion here: lvgl/lvgl#229
I modified the monospace support to leave letters "slim" (not extra columns to not occupy extra space) and updated drawing algorithm of the library align letters during rendering. The updates are in lvgl/dev-5.2 branch.

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.