Get custom u8g2 unifonts with 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 the downloaded .h file:: #include <u8g2lib.h>
  3. 3. Set the font with:: #include "u8g2_font_03a5abada53e6bdb8f833c3bd17a69e3.h"
  4. 4. Done: u8g2.setFont(u8g2_font_unifont_myfonts);

Sample Code

⭐Copy the following code into your Arduino project
⭐Remember to change the file name you downloaded

u8g2test.ino Copy & paste!


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

#include <Arduino.h>
#include <u8g2lib.h>
/// After copy, remember 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.
Features of u8g2:
  • Graphics capabilities: U8g2 supports a wide range of graphic operations, such as drawing lines, boxes, circles, and other shapes.
  • Font support: It includes many fonts of different sizes and styles.
  • Memory efficiency: U8g2 uses a buffer in the microcontroller to render the display, which helps optimize memory usage.
  • Compatibility: U8g2 supports a variety of display controllers.

  • Arduino
    For more information, refer to the official website: GitHub

    This depends on the font used to generate Unicode. Here, unifont.c is used, which contains many language fonts.

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