An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS, and Windows.
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
License.txt Create License.txt May 25, 2013


ofxTrueTypeFontUC Screenshot


An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS�, and Windows.


No additional library is required.


  1. Download it ( )
  2. Extract the zip file, and rename the extracted folder to ofxTrueTypeFontUC
  3. Put the ofxTrueTypeFontUC folder in the addons folder in your openFrameworks root folder


  1. Add ofxTrueTypeFontUC.h and ofxTrueTypeFontUC.cpp to your project
    (Refer to IDE setup guide for detail)

  2. Put font file (ex. yourFont.ttf) in yourProjectFolder/bin/data folder

  3. Include ofxTrueTypeFontUC.h

    // ofApp.h
    #include "ofxTrueTypeFontUC.h"
  4. Declare an instance

    // ofApp.h
    class ofApp : public ofBaseApp{
      ofxTrueTypeFontUC myFont;
  5. Load a� font

    // ofApp.cpp
    void ofApp::setup(){
      myFont.loadFont("yourFont.ttf", 64�, true, true);
  6. Draw string

    // ofApp.cpp
    void ofApp::draw(){
      myFont.drawStringAsShapes("こんにちは", 100, 100);
      myFont.drawString("はじめまして", 100, 200);

Refer ofxTrueTypeFontUC.h with regard to other functions.


  1. Fork it ( )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Rebase your local changes against the master branch
  5. Confirm that your feature works just as you intended
  6. Confirm that your feature properly works together with functions of ofxTrueTypeFontUC
  7. Push to the branch (git push origin my-new-feature)
  8. Create new Pull Request

Tested System

  • OSX (10.10) + Xcode (6.1) + openFrameworks 0.8.4 (osx)
  • iOS (8.1) + Xcode (6.1) + openFrameworks 0.8.4 (ios)
  • Windows 8.1 + Visual Studio 2012 Express + openFrameworks 0.8.4 (windows)


ofxTrueTypeFontUC is distributed under the MIT License. This gives everyone the freedoms to use ofxTrueTypeFontUC in any context: commercial or non-commercial, public or private, open or closed source. Please see License.txt for details.