Replies: 10 comments 5 replies
-
I have the feeling that this part is missing some documentation @lovyan03 I got stuck for example in the latest days trying to render text in Polish, which seems that Adafruit GFX fontconvert tool does not support. As an example:
|
Beta Was this translation helpful? Give feedback.
-
@martinberlin I know how you feel The font example sketch should help you with the declarative part. Here's another example on how to import u8g2 unicode fonts into lgfx. Contributions to the wiki of this repository are welcome btw. |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
-
https://github.com/m5stack/FontCreator -> Discarded for me. Bad documented. Generating all Ubuntu fonts also does not render polish. I don't really see much of a difference with Adafruit GFX font converter. |
Beta Was this translation helpful? Give feedback.
-
there's still a way to load font files from the filesystem with found another documentation based on u8g2 bdfconv settings for polish (found in u8g2 MakeFile):
|
Beta Was this translation helpful? Give feedback.
-
Nice @tobozo thanks a lot. That of storing the ttf in SPIFFS sounds quite useful must say. GFXfont *m_regular_font = tft.loadFont( "/path/to/ttf/file", SPIFFS); Does it return a GFXfont type or it's something different. |
Beta Was this translation helpful? Give feedback.
-
sorry it's not TTF but VLW fonts, you can generate those using the There's a tutorial on seeed wiki. Processing will only see the system fonts though (no file picker), so make sure to install them before launching the interface. And it's just this, tft.loadFont() has no return value:
I just tried it with |
Beta Was this translation helpful? Give feedback.
-
Great to see that it works. I will try that then! I still don't see how to do a: display.setFont(&MyFont); |
Beta Was this translation helpful? Give feedback.
-
Got it working using latest fontconvert from Adafruit Example on how to do it:
Note: It seems the polish glyphs are in the area that is from 255 -> 350 (Later will open the font with FontForge and check more specifically) |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @tobozo |
Beta Was this translation helpful? Give feedback.
-
Hi how to use custom fonts where i can paste them ect
Beta Was this translation helpful? Give feedback.
All reactions