ofAlphabet related error

trying to drawing CJK string with ofTrueTypeFont but I got error.
image

/home/icq4ever/oF/apps/studio42/todayNowMoon/src/MissionManager.cpp:12:43: error: cannot convert ‘const std::initializer_list<ofUnicode::range>’ to ‘const ofUnicode::range&’
   12 |  unicodeFontSettings.addRange(ofAlphabet::Korean);
      |                               ~~~~~~~~~~~~^~~~~~
      |                                           |
      |                                           const std::initializer_list<ofUnicode::range>
In file included from /home/icq4ever/oF/libs/openFrameworks/ofMain.h:74,
                 from /home/icq4ever/oF/apps/studio42/todayNowMoon/src/MissionManager.h:1,
                 from /home/icq4ever/oF/apps/studio42/todayNowMoon/src/MissionManager.cpp:1:
/home/icq4ever/oF/libs/openFrameworks/graphics/ofTrueTypeFont.h:145:44: note:   initializing argument 1 of ‘void ofTrueTypeFontSettings::addRange(const ofUnicode::range&)’
  145 |     void addRange(const ofUnicode::range & range){
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

arch linux
openFrameworks github (master and stable branch all I tired)

Hi @icq4ever,

Have you tried calling .addRanges() instead of .addRange()? ofTrueTypeFontSettings::addRanges() takes an initializer_list as an argument (std::initializer_list?), which is the same type as an ofAlphabet. ofTrueTypeFontSettings::addRange() takes an ofUnicode::range type. You might find this forum post helpful too: ofTrueTypeFont and full character set

@TimChi ahha! thank you very much. what a stupid mistake :open_mouth: