ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

How to add umlaut to a text label #148

Closed daybyter closed 3 years ago

daybyter commented 3 years ago

Trying to add an german umlaut to a text label, but it seems they are missing from the character map, although I enable utf-8 ?

Pconti31 commented 3 years ago

First UTF8 only works with TrueType fonts. All other fonts are 7 bit or 8 bit ascii. TrueType fonts are only available with the SDA driver using linux as the target platform. I did just add NotoLatin1 font which is 8 bit ascii and might have what you want. Otherwise you will need to create your own fonts.

If you want the NotoLatin1 you will need to copy the GUIsliceBuilder/fonts/gfx/NotoLarin1 fonts to your Arduino library/Adafruit_GFX/fonts folder before using the Arduino IDE.

Paul--

daybyter commented 3 years ago

Thanks a lot for your response. So creating a font seems to be the way to go. So I am looking for pointers on how to do this and this was my first find:

https://learn.adafruit.com/creating-custom-symbol-font-for-adafruit-gfx-library

daybyter commented 3 years ago

Found more stuff:

https://rop.nl/truetype2gfx/

https://www.foobarflies.io/adafruit-gfx-font-customiser/

https://blog.squix.org/2016/10/font-creator-now-creates-adafruit-gfx-fonts.html

Especially the first link seems to provide a rather convenient way to create fonts...have to check further

Pconti31 commented 3 years ago

@daybyter You can also use my tool, ttf2gfx. It's how I created NotoLatin1 ttf2gfx Paul--

Pconti31 commented 3 years ago

I'm closing this topic since it seems you have the information you need. Any problem feel free to open a new issue. Paul--