Cyrillic fonts for U8g2_for_Adafruit_GFX (on 1.54 inch E-Ink display)

The Cyrillic U8g2 fonts work fine on the on 1.54 inch E-Ink display, both for Russian and Ukrainian languages. The only issue is that the largest font u8g2_font_10x20_t_cyrillic is still too small.

There is no such problem for French and German fonts with special characters. I included the photo of my E-Ink display and the code in my previous post on this subject:

Is there any way to display the Cyrillic fonts in larger size on the E-Ink display? I mean the same existing U8g2 fonts, but just scaled up.

@OleksiyM,

I would have expected you get answers to this post. Maybe the title is a bit too narrow..

Cyrillic fonts for Adafruit_GFX or U8g2_for_Adafruit_GFX might have been of more general interest.

It seems u8g2 does have bigger Cyrillic fonts, e.g. u8g2_font_cu12_t_cyrillic:

You could also search for "adafruit gfx font creator"

e.g. Font Creator Now Creates Adafruit GFX Fonts - Squix - TechBlog
might be of interest. If you know of Cyrillic fonts in the public domain, he might add them.

Jean-Marc

Added: question:

Does anyone know more about adding bigger Cyrillic fonts?

u8g2_font_10x20_t_cyrillic is bigger than u8g2_font_cu12_t_cyrillic or u8g2_font_unifont_t_cyrillic

The Adafruit_GFX library only works with letters from 0-255 i.e. 8-bit. Unifont letters require 16-bit. And language letter groups are not always adjacent.

16-bit Unifont letter rendering might be a useful feature for Adafruit_GFX but would be a nightmare for Adafruit support.

U8g2 can handle almost anything but was designed for smallish displays. So you would not expect to use very large fonts on a 128x64 display.

Yes, it would be handy if Oliver added one large Unifont font to u8g2lib. It would make little difference to overall library size or build speed.

Oliver's U8g2_for_Adafruit_GFX library seems the best way to deal with non-ascii fonts.

David.

I have opened an issue on U8g2_for_Adafruit_GFX for adding bigger Cyrillic fonts.

I like U8g2_for_Adafruit_GFX and hope Oliver doesn't mind that I ask for this by an issue.

Jean-Marc

I solved the problem. I found at the GIT site of the U8g2 project GitHub - olikraus/u8g2: U8glib library for monochrome displays, version 2 the following font u8g2_font_inr24_t_cyrillic in the file u8g2_fonts.c (the complete font code did not fit into the post, I provide it here only as an example).

For some reason it is not in the downloaded library yet. Then I pasted it in my sketch and voilà, - I can use the font u8g2_font_inr24_t_cyrillic all right. Thank you for your assistance!

I think soon this font will be in the updated library.

const uint8_t u8g2_font_inr24_t_cyrillic[6832] U8G2_FONT_SECTION("u8g2_font_inr24_t_cyrillic") = 
  "\307\0\4\3\5\6\5\6\6\24&\0\371\31\372\31\372\3\317\7\303\13D \6\0\200 \15!\22%"
  "\273 \35\42\24\234\354\377\361\304\301A\304\4\0\42\13*\261p\35RE\376\321\0#\71\22\213 m"
  "B\223B\223B\223B\242B\222CR\7\7\23\7\7S*\205&\205&\205&\205D\205$\207\304\16"
  "\16$\16\16\246T\12M\12M\12M\12I\16I\16\211\1$\66O\233\37m\322\302\205\7B\7&"
  "#\62\23\63B!\63r\63r$\202\24\222\246\267\226\22u\62sBcBcBTBE\62\23$"
  "\22\64\7d\7\241\322r\0%>\22\213 =\203\62W\63\23C\63{\62\64\63\62\64\63\61v\62"
  "W\62\17 \17\60\17 \17\60>\17\60B\70r\66\61\62\65\42\264DhfFhFHhdh"
  "dF\354d\216\6\0&\65\21\223 ]\265\227\24tCdScScSs\63\203\63\223\267mM"
  "G\246B\206\206$\304F\314($\346,\6I\6I\310L**f\16d\206\312\42\0'\11#\311"
  "\60\35\7\17\12(\33\353\263\32\215rUd\354\26\316\15\16\12\356/\7\27\22\16\62\234\234$\34"
  ")\34+\244\31\15\241\203|\70\71\70\71\270rp\37\12\256\33\234\233#\343\235d(\0*\36\17\222"
  "$}\322\332EI\325\310\34\34\20\35D\16\223\212\10\216\214\15-\233\31\33\212\5+\17\20\222$m"
  "\323\373\356\340\3\262\351}\7,\21E\271\32\35\23\7\23$#\62\42\42#\62\0-\7N\230+\15"
  "\77.\13\205\270 \35\23\7\23\23\0/\36N\233\37\275KgGggegege\227\316\216\316"
  "\216\316\316\312\316\312\316\312\256\5\60\66\20\223 m\244\7q$TDDc\63\203#s$r\25c"
  "\23f\42V\62F\63\66C&S&b\26r\23u\42t#\203\63cCTS$t\7\241d\0"
  "\61\17\10\243 ]\63\25\7\24DS\373\377\37\62\32\16\233 Mf\7\63\25\26s#\201\264\273\225"
  "\35\335\337\216.=\370 \0\63\42\16\233 Mf\7\63%\65q\303\263\233N\222\335\235\26\317\322\356"
  "$\216Bn\302\242\350@\256\12\0\64%\17\223\340\234\303\263\244-%&%\6E\346F\346d\306\204"
  "\246\206\246\244\206\304\206\304f\16>\220\34\336\67\0\65!\17\233 \35\7&\7&\303\373\242\354\200\250"
  "\244f\214&pzx/\4'\310H\32\35\314Y\1\66*\16\233 mu\7B$\64c\61\263\263"
  "\262K\212&\16BL*\252&\310&\6}\70\61\67\61\66B\65SAu\20X\4\67\33\16\233 "
  "\15\277\35\235\35\235\235\225]:;:\273tv\351\354\322\331QB\0\70/\17\233 ]\205\7R\25"
  "ES\63s#s#s#sBSC\64c\7\201w#Tk\346F$%&]\336Q\314\215X"
  "\24\35\314Y\1\71)\16\233 M\205\7Q\24\65S$c\23\203\22\203\36\336M\214Q\224\230\34D"
  "\14\225\314\256\225]\23\66CBt W\6:\20\5\272 \35\23\7\23\363\210'\16&&\0;\26"
  "\305\272\32\35\23\7\23\363\210'\16&HFdDDFd\0<\26\220\222\42\375\0\341\302\244\225}"
  ";M\335\232\272\343\352y\200\0=\15P\221'\15\77\240\307g\7\37\20>\30\221\222\42\15\361\20\343"
  "\325\345}N\134ZK[\332m\361x<\4\0\77\37.\233 Mf\7\63%\25d\23\222\263\233\222"
  "\216RR\216\222\316n\217\341he\351\24\0@\70\21\223 }\245\7b%Us\63\242\42\243\23b"
  "\7\21B\7\66\215\246j\306j\306j\306j\246\214f\16b\16(\204,&\344\1\346\1\346\1\346\1"
  "J\350\16&\215\0A\65\62\213 \215\361 \361 \361\20\363\0\363\0\324\325\22\322\22\263\62\262\62\262"
  "\62\223R\222RsSs\352\16\252\16\254\6\245$g&gFGd'f'\206\7B/\20\223 "
  "\15\7T\7\66S&\203#\223\23\223\23\223\23\223\23\203#s$\7\66\7Ec%\203\24\223\23\243"
  "\276\274\234\230\62\71\260\71\240\2C\42\20\223 m\206\7S%\65d$\203\23\243!\323\322\373\363\351"
  "i\352\311\30\272\31\23\252\203A#\0D)\20\223 \15\7c\7ES\65s$\203#\223\23\223\23"
  "\223\23\243\376\313\211\311\211\311\211\301\221\271\231\251\232\3\252\203\61\0E\24\17\233 \15\77(\336\217\17"
  "L\16L\206\367\217\17>\20F\22\16\233\340\14\77\230\335o\17J\16Jf\367\277\5G(\20\223 "
  "m\206\7S%\65d$\203\42\323\323\322{v\60v\60\352tbrbrdp\204n\306\302\350`"
  "\320\10\0H\20\17\223\340\14\223\376\227\7\77\210\364\377r\0I\20\14\233\340\14\37LM\356\377\177t"
  "\360`\0J\26\20\223 ]\7T\7\224\323\373\377WRS\25u\7\221\205\0K\63\20\223 \15\223"
  "\23\203#s$s\63cCS\213\306f\346F\6'\10/\17\2)\6g\346f\310\206\306\246V\21"
  "\215\321\314\315\14\216\14RLN\214\16L\15\16\233 \15\263\373\377\177{\360\1M*\20\223 \15\263"
  "\245\227\207\7r\7b\7T\7\21B\22\26B\22\26#\42&JLjlhl\206\214\204\214\242L"
  "\375\323\1N.\17\223\340\14\223\207\17\342\16\342\16\304,\304,\246L\244L\206l\204lf\214d\214"
...THE COMPLETE FONT CODE DID NOT FIT INTO THE POST!!!
....

yes, I am working on this…

Oliver

I have created version 1.7.0 of "U8g2 for Adafruit GFX". It should be available within the Arduino IDE in the next days (depends on the Arduino Library scanner).

The cyrillic fonts are listed here: fntgrpinconsolata · olikraus/u8g2 Wiki · GitHub

Oliver