hello. i want to read file which containing UTF8 korean texts, and draw that strings.
with officially released 0.9.0 oF, it drawing ...
, instead right strings contained.
so I googled. and find this thread below from github.
ofTrueTypeFont: add UTF8 support
I update ofTrueTypeFont.h/.cpp. and trying with updated new classe.
but i stucked.
this is error logs and the code I tried.
error
/home/icq4ever/Documents/oF/libs/openFrameworks/graphics/ofTrueTypeFont.h:126: error: ‘std::vector<ofUnicode::range> ofTtfSettings::ranges’ is private
vector<ofUnicode::range> ranges;
^
ofApp.cpp
void ofApp::setup(){
ofTtfSettings settings("UnBatang.ttf", 14);
settings.antialiased = true;
settings.ranges ={ // error occured with this context
ofUnicode::Latin1Supplement,
ofUnicode::Hiragana,
ofUnicode::Katakana,
ofUnicode::CJKUnified
};
ofTrueTypeFont::setGlobalDpi(72);
koPub.load(settings);
koPub.setLineHeight(18.0f);
koPub.setLetterSpacing(1.037);
}
is there anything I missed ?