Get custom u8g2 unifontswith ease!

No more complex process to create u8g2 unifont codes! Just enter the characters needed and click submit! That's it!

Features

  1. Easy to use
  2. Remove duplicated characters
  3. Minimum file size for any project

SSD1306 OLED demo

繁中
簡中
日本
한국인
Test
GPS 1
GPS 2
Draw dice

Generate u8g2 unifonts

How to use u8g2 unifont converter after download?

  1. 1. Copy the downloaded file into your Arduino project directory
  2. 2. Include u8g2 library:: #include <u8g2lib.h>
  3. 3. Inculde the downloaded .h file:: #include "u8g2_font_01926755fbc8480fc5f669c61ae3bd60.h"
  4. 4. Set the font with:: u8g2.setFont(u8g2_font_unifont_myfonts);
  5. 5. Done

u8g2 Sample Code

⭐Before you try out this sample code, convert these characters first!!
⭐After copy, remmber to include the newly generated font file .h

u8g2test.ino Copy & paste!



//溫度溼度亮度感度
//显示屏选择麦风总
//何千もの山と鳥が飛び去り、
//마법같은경험이라고표현했

#include <Arduino.h>
#include <u8g2lib.h>
/// After copy, remmber to update this line!! 
/// Copy 之後, 別忘了更新這行, 要和上面產生的檔名一樣!!
#include "u8g2_font_unifont_myfonts.h" 

#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif

U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/U8X8_PIN_NONE);

// OLED TEXT ROW number, vertical position
const byte ROW[5] = {0, 15, 31, 47, 63};

void setup(void)
{
  Serial.begin(115200);
  u8g2.begin();
  u8g2.enableUTF8Print();
  Serial.println("u8g2 started");
}

void loop(void)
{
  // font list: https://github.com/olikraus/u8g2/wiki/fntlist16
  u8g2.setFont(u8g2_font_unifont_myfonts); 
  //u8g2.setFont(u8g2_font_unifont_t_chinese3);

 u8g2.clearBuffer();
  u8g2.setCursor(0, ROW[1]);
  u8g2.print("溫度溼度亮度感度");
  u8g2.setCursor(0, ROW[2]);
  u8g2.print("显示屏选择麦风总");
  u8g2.setCursor(0, ROW[3]);
  u8g2.print("何千もの山と鳥が飛び去り、");
  u8g2.setCursor(0, ROW[4]);
  u8g2.print("마법같은경험이라고표현했"); 
  u8g2.sendBuffer();
  delay(10000);
}

                            

Video Tutorials for u8g2

u8g2 新手入門(中文)

為了使用 0.96” OLED SD1306 顯示器, 研究了一下 U8G2 的字型程式庫的使用方法. 記錄一下使用方式, 也和大家一起來分享. 影片中14:34也介紹了如何安裝及使用益師傅做的5000+繁中字型.

u8g2 how to(English)

For 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.

如何畫動態骰子(中文)

這個影片適合想要學習如何在SD 1336 LED上面畫出圖案的朋友觀看&學習.
(中文字幕 CC is available! for other languages, pease use YouTube auto-translate)

Frequently Asked Questions

u8g2 is a monochrome graphics library for embedded devices.
u8g2:
  • Includes all graphics procedures (line/box/circle draw).
  • Supports many fonts.
  • (Almost) no restriction on the font height.
  • Requires some memory in the microcontroller to render the display.

  • The Arduino library u8g2 can be installed from the library manager of the Arduino IDE.
    It’s a great tool for developers working with monochrome displays in their projects. GitHub

    This is based on the font used to generate unicode is unifont.c. It contains many language fonts. I only tested with traditional Chinese, simplified Chinese, Japanese, and Korean. Let me know if you found your language is supported.

    Good question! It means that characters you specified are not within unifont.c. Well, you might want to create the glyph yourself and contribute back to the u8g2 community.