ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.12k stars 205 forks source link

Add support for U8G2 Fonts to enable UTF8 characters on ESP8266/AVR #397

Closed DynamicLoader closed 2 years ago

DynamicLoader commented 2 years ago

Hi, For ESP8266/ESP32,there is already a "Smooth Font" for them to show UTF_8 characters. But the vlw file format is too big to storage a large amount of chars in SPIFFS. (For example,I'm about to storage about 8000 16*16 chars in vlw format,and its size is about 5MB) For AVR,the font can hardly be storaged in ROM because of its little ROM.

In some cases,we do need to show UTF_8 string on the screen without SD Card support.

Feature Request or Enhancement

Add support for U8G2 Fonts to enable UTF8 characters on ESP8266/AVR.

For AVR,the library U8g2_for_Adafruit_GFX could be used. For ESP32/ESP8266,a ported library of U8g2_for_Adafruit_GFX written by Bodmer called U8g2_for_TFT_eSPI could be used.

Additional context

U8G2 library has already provided some built-in fonts,which were also provided in U8g2_for_Adafruit_GFX and U8g2_for_TFT_eSPI.They can be used to test. Some examples in U8g2_for_TFT_eSPI can be used to learn and test,too.

I'd appreciate it if you could take the request into consideration.

DynamicLoader commented 2 years ago

Sorry for it,I did not read builder update document.

DynamicLoader commented 2 years ago

Following Pconti31's advice here,I reopen this issue.