Compiling ofxTrueTypeFontUC.cpp throws errors

Hi!

I’m using of v0.8.0 in VS2012 and tried ofxTrueTypeFontUC today. Unfortunately, while compiling ofxTrueTypeFontUC.cpp, it threw errors:

[tt]
Error 3 error C2758: ‘ofxTrueTypeFontUC::Impl::kLimitCharactersNum’ : must be initialized in constructor base/member initializer list c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 52 1 visualizer
Error 4 error C2758: ‘ofxTrueTypeFontUC::Impl::kTypeFaceUnloaded’ : must be initialized in constructor base/member initializer list c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 52 1 visualizer
Error 1 error C2864: ‘ofxTrueTypeFontUC::Impl::kLimitCharactersNum’ : only static const integral data members can be initialized within a class c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 74 1 visualizer
Error 2 error C2864: ‘ofxTrueTypeFontUC::Impl::kTypeFaceUnloaded’ : only static const integral data members can be initialized within a class c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 75 1 visualizer
[/tt]

So it seems that in line 74~75 of ofxTrueTypeFontUC.cpp,

  
  
const unsigned int kLimitCharactersNum = 10000;  
const unsigned int kTypeFaceUnloaded = 0;  
  

there is a problem.

Any idea?

try one of these two modified versions, one is for utf8 the other is for utf16

[ofxttfuc utf8 utf16.zip](http://forum.openframeworks.cc/uploads/default/3103/ofxttfuc utf8 utf16.zip)

Hello. I’ve fixed it now. Thank you for letting me know.