hironishihara / ofxTrueTypeFontUC

An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS, and Windows.
Other
115 stars 46 forks source link

COMPILE EROR #32

Open mathpopo opened 1 month ago

mathpopo commented 1 month ago

/home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.h:8:14: error: ‘string’ does not name a type; did you mean ‘stdin’? 8 | const static string OF_TTFUC_SANS = "sans-serif"; | ^~ | stdin

mathpopo commented 1 month ago

In file included from /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.cpp:1: /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.h:35:66: error: ‘ofIsVFlipped’ was not declared in this scope 35 | vector getStringAsPoints(const string &str, bool vflip=ofIsVFlipped()); | ^~~~ /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.cpp: In member function ‘void ofxTrueTypeFontUC::Impl::loadChar(const int&)’: /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.cpp:1159:12: error: aggregate ‘ofPixels expandedData’ has incomplete type and cannot be defined 1159 | ofPixels expandedData; | ^~~~ /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.cpp:1236:14: error: aggregate ‘ofPixels bitmapPixels’ has incomplete type and cannot be defined 1236 | ofPixels bitmapPixels; | ^~~~ /home/chenxin/disk1/github/openFrameworks/addons/ofxTrueTypeFontUC/src/ofxTrueTypeFontUC.cpp:1273:12: error: aggregate ‘ofPixels atlasPixels’ has incomplete type and cannot be defined 1273 | ofPixels atlasPixels; | ^~~