Inkplate 13 Spectra Č, Š, Ž

Hi,

I need to display the letters Č, Š and Ž on a Inkplate 13 Sprectra. I am having trouble finding a font, that would show Č, Š, Ž.

Can you recomed a font that would work?

Thank you.

Hi @aljaz_kunst

Unfortunately it’s not as simple as using a font that supports it due to the way the Adafruit GFX write function handles character drawing. It looks up each character by a single byte code (0-255), not by its actual Unicode value, so characters above that range (like č, ć, ž…) can never be reached directly, no matter what the font file contains.
However, a solution is to build a custom font that adds those diacritics as extra glyphs at unused byte codes, then print those byte codes explicitly instead of typing the letters directly. We have added a new example under Advanced/Other in the library detailing how do to so for any language and any font.
For the Croatian specific ones I’m attaching an example that uses Croatian diacritics using the FreeSans font. If you wish to use a different font, refer to the examples.

Inkplate13SPECTRA_Croatian_Diacritics.zip (9.8 KB)