sbrin / lopaka

Lopaka - Stunning graphics for embedded systems displays
https://lopaka.app
Apache License 2.0
315 stars 18 forks source link

Easy way to add new font #83

Closed namcktv closed 4 months ago

namcktv commented 5 months ago

Is there any way to add fonts easily, such as adding them directly on the GUI, or adding them to the "fonts" folder?

sbrin commented 5 months ago

There’s no way. We’re working on adding more fonts. Currently we’re struggling with different bdf formats

namcktv commented 5 months ago

The u8g2 library has all the bdf fonts, but why can't it be added to the app?

sbrin commented 5 months ago

@namcktv it takes time 😀

krbvroc1 commented 5 months ago

I dropped by to concur. I am trying to design a display and was looking for a program to assist. I saw a post on reddit announcing this application and was excited. Unfortunately, without the ability to select all the fonts included in the stock u8g2 library, this application is not useful at all for me. Selecting fonts in different sizes and making sure they match pixel wise is the biggest challenge. I can use any basic application like MS paint or GIMP to accomplish drawing lines, circles, boxes, etc.

u8g2 includes the bdf files. If that is a challenge, to support the stock u8g2 stuff, perhaps using the 'c' code array and indexing into that might be easier?

sbrin commented 4 months ago

We have merged new u8g2 fonts recently. You can check it here https://dev.lopaka.app/

You can run project locally and add any BDF files you like into src/draw/fonts/bdf folder. It will appear in editor then.

The next step will be uploading custom BDF and font arrays

sbrin commented 4 months ago

Also there is a BDF font preview tool available on https://dev.lopaka.app/font-preview You can select any BDF and see how it will look in Lopaka