Showing posts with label u8g2 Chinese. Show all posts
Showing posts with label u8g2 Chinese. Show all posts

2025/01/17

u8g2 字型產生器網站 / u8g2 uni-font generator web site (stonez56.com/u8g2)

開發 Arduino / ESP32 顯示器 (OLED/LCD) 相關專案時, 常會用到的中文字型, 一般都會採用 u8g2 字型庫, 不過它內建的使用方法較不方便, 需要手動下指令, 或是把一整個字型檔全部帶入, 造成記憶體的浪費.

介紹一個我開發的 u8g2 中文產生器網站. 只要打入要你的中文, 日文, 韓文, 或是其它 UTF-8 的文字, 它都可以幫你快速的產生字型檔, 使用時, 只要把產生字型檔帶入即可, 方便, 快速, 節省大量的記憶體. 

有需要的朋友快來試試吧~ https://stonez56.com/u8g2 



詳細的的字型使用方法也可以參考這裡: https://youtu.be/Ksdwd87JpPs 

Happy weekend!! 😁


-------------------------------------------------------

When developing Arduino/ESP32 projects with displays, Chinese /Japanese/Korean and other UTF fonts are often needed. The u8g2 font library is commonly used, but its built-in usage is inconvenient, requiring manual commands or loading the entire font file, which wastes memory.

I'm introducing a u8g2  font generator website I developed. Just enter the Chinese, Japanese, Korean, or other UTF-8 text you need, and it can quickly generate font files for you. When using them, simply include the generated font file, which is convenient, fast, and saves a lot of memory.

If you're interested, please give it a try! https://stonez56.com/u8g2

You can also refer to this link for detailed instructions on how to use the fonts: https://youtu.be/-bntyE8UYTY

Happy weekend!! 😁

2021/08/08

Arduino - How to use U8g2 library to show graphic & UTF8 characters for monochrome displays

In order to use the newly purchased 0.96" OLED SD1306 display, I studied the u8g2 library and made this video to share with you on how to use U8g2 library with monochrome display. In the video, I also included a section on how to use the free 5000+ traditional Chinese font created by Mr. Yang. The file is free for anyone to use. Really appreciated what he did for Arduino community! For those who do not have time to watch the entire video , here is the video timeline.

Video Timeline:

00:22 Install u8g2 01:04 Open PrintUTF8 example 02:00 Define display used 02:23 Explain display naming rules 04:13 Uncomment the line selected 04:33 Explain the code 04:42 enableUTF8Print() for symbol and Chinese 05:14 u8g2 supported font list 06:23 display location setCursor(X,Y) 07:05 Upload the sketch & show characters 07:23 Can't overwrite characters! 08:08 Char overwrite solution 08:37 OledOverlayPrint() function 09:06 Use OledOverlayPrint() in code 10:08 Use Open Iconic Fonts 11:29 Display cloud symbol 11:52 \u with number to show cloud 13:02 Change fonts for different lines 14:34 Download 5000+ Chinese font 15:11 Install 5000+Chinese font 15:39 Test missing fonts again 16:42 Reminder of memory usage 17:45 End of tutorial

References:

U8g2 library: https://github.com/olikraus/u8g2 U8g2 plain font: https://github.com/olikraus/u8g2/wiki... U8g2 setCursor command: https://github.com/olikraus/u8g2/wiki... U8g2 iconic font: https://github.com/olikraus/u8g2/wiki... How to make your own font: https://blog.jmaker.com.tw/chinese_oled/ MQTT & IoT Integration FB group: https://www.facebook.com/groups/36360... Download 5000+ Chinese font: https://drive.google.com/drive/folder...

 END

------------------------------------------------------------------------------------------------------------------------------------------------