tcoppex / ofxfontsampler Goto Github PK
View Code? Open in Web Editor NEW:ab: TrueType font glyph sampler addon for OpenFrameworks.
License: MIT License
:ab: TrueType font glyph sampler addon for OpenFrameworks.
License: MIT License
hey @tcoppex ,
are you using another ofxTriangleMesh fork? I am getting the linked fork on the README...
This is on Visual Studio 2017, OF 0.10
Severity Code Description Project File Line Suppression State
Error (active) E0135 class "ofxTriangleMesh" has no member "drawCleanVoronoi" example F:\openFrameworks\addons\ofxFontSampler\example\src\ofApp.cpp 151
Error C2660 'ofxTriangleMesh::draw': function does not take 1 arguments example f:\openframeworks\addons\ofxfontsampler\example\src\ofapp.cpp 137
Error C2039 'drawCleanVoronoi': is not a member of 'ofxTriangleMesh' example f:\openframeworks\addons\ofxfontsampler\example\src\ofapp.cpp 151
Error C2429 language feature 'init-statements in if/switch' requires compiler flag '/std:c++17' example f:\openframeworks\addons\ofxfontsampler\src\ofxfontrenderer.cpp 25
Hey @tcoppex ,
Do you still use this addon?
I am getting this error at \ofxFontSampler\libs\fontsampler\ttf_reader.cc:
it seems that detect some error in the ttf files...
/* Check that the file is correct */
if ( (header_.filetype != 0x74727565)
&& (header_.filetype != 0x00010000)) {
fprintf(stderr, "Error : Invalid magic number.\n");
fclose(fd);
return false;
}
There's a new OF example that could be a replacement to your addon, but I suspect that it could be more performant or better to use your addon. maybe? I mean bc you have used some third-party libs...
https://github.com/openframeworks/openFrameworks/tree/master/examples/3d/pathsToMeshesExample
I have seen also this alternative:
https://github.com/moebiussurfing/ofxFontThreeDee
did you tried on Windows and macOS?
I am getting these errors in macOS:
Showing All Errors Only
Build target example of project example with configuration Debug
CompileC /Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/Objects-normal/x86_64/glyph.o /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/user/Documents/openFrameworks/addons/ofxFontSampler/example
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.9 -g -mssse3 -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -index-store-path /Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Index/DataStore -I/Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/exampleDebug.hmap -I/Users/user/Documents/openFrameworks/addons/ofxFontSampler/example/bin/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/.settings -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/math -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/gl/shaders -I../../../libs/freetype/include -I../../../libs/freetype/include/freetype2 -I../../../libs/fmodex/include -I../../../libs/glew/include -I../../../libs/FreeImage/include -I../../../libs/tess2/include -I../../../libs/cairo/include/cairo -I../../../libs/rtAudio/include -I../../../libs/glfw/include -I../../../libs/boost/include -I../../../libs/utf8/include -I../../../libs/json/include -I../../../libs/glm/include -I../../../libs/curl/include -I../../../libs/uriparser/include -I../../../libs/pugixml/include -Isrc -I../../../addons/ofxFontSampler/libs -I../../../addons/ofxFontSampler/libs/fontsampler -I../../../addons/ofxFontSampler/src -I../../../addons/ofxTriangleMesh/libs -I../../../addons/ofxTriangleMesh/libs/Triangle -I../../../addons/ofxTriangleMesh/src -I/Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/DerivedSources/x86_64 -I/Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/DerivedSources -F/Users/user/Documents/openFrameworks/addons/ofxFontSampler/example/bin -D__MACOSX_CORE__ -mtune=native -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/Objects-normal/x86_64/glyph.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/Objects-normal/x86_64/glyph.dia -c /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc -o /Users/user/Library/Developer/Xcode/DerivedData/example-duykchlvexjihjccmqyvqsiztwff/Build/Intermediates.noindex/example.build/Debug/example.build/Objects-normal/x86_64/glyph.o
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:204:24: error: 'auto' not allowed in lambda parameter
[scale_x, scale_y](auto &v) {
^~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:14: error: 'auto' not allowed in lambda parameter
[](const auto &a, const auto &b) { return a.x < b.x; }
^~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:29: error: 'auto' not allowed in lambda parameter
[](const auto &a, const auto &b) { return a.x < b.x; }
^~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:14: error: 'auto' not allowed in lambda parameter
[](const auto &a, const auto &b) { return a.y < b.y; }
^~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:29: error: 'auto' not allowed in lambda parameter
[](const auto &a, const auto &b) { return a.y < b.y; }
^~~~
In file included from /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:1:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/glyph.h:4:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/ttf_structs.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:879:9: error: no matching function for call to object of type '(lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:204:5)'
__f(*__first);
^~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:203:8: note: in instantiation of function template specialization 'std::__1::for_each<std::__1::__wrap_iter<vertex_t *>, (lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:204:5)>' requested here
std::for_each(vertices_.begin(), vertices_.end(),
^
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:204:5: note: candidate template ignored: couldn't infer template argument ''
[scale_x, scale_y](auto &v) {
^
In file included from /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:1:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/glyph.h:4:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/ttf_structs.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2669:15: error: no matching function for call to object of type '(lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:5)'
if (__comp(*__first, *__result.first))
^~~~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:215:23: note: in instantiation of function template specialization 'std::__1::minmax_element<std::__1::__wrap_iter<vertex_t *>, (lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:5)>' requested here
auto resultX = std::minmax_element(vertices_.begin(), vertices_.end(),
^
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:5: note: candidate template ignored: couldn't infer template argument ''
[](const auto &a, const auto &b) { return a.x < b.x; }
^
In file included from /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:1:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/glyph.h:4:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/ttf_structs.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2678:23: error: no matching function for call to object of type '(lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:5)'
if (__comp(*__i, *__result.first))
^~~~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:216:5: note: candidate template ignored: couldn't infer template argument ''
[](const auto &a, const auto &b) { return a.x < b.x; }
^
In file included from /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:1:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/glyph.h:4:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/ttf_structs.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2669:15: error: no matching function for call to object of type '(lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:5)'
if (__comp(*__first, *__result.first))
^~~~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:218:23: note: in instantiation of function template specialization 'std::__1::minmax_element<std::__1::__wrap_iter<vertex_t *>, (lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:5)>' requested here
auto resultY = std::minmax_element(vertices_.begin(), vertices_.end(),
^
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:5: note: candidate template ignored: couldn't infer template argument ''
[](const auto &a, const auto &b) { return a.y < b.y; }
^
In file included from /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:1:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/glyph.h:4:
In file included from ../../../addons/ofxFontSampler/libs/fontsampler/ttf_structs.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2678:23: error: no matching function for call to object of type '(lambda at /Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:5)'
if (__comp(*__i, *__result.first))
^~~~~~
/Users/user/Documents/openFrameworks/addons/ofxFontSampler/libs/fontsampler/glyph.cc:219:5: note: candidate template ignored: couldn't infer template argument ''
[](const auto &a, const auto &b) { return a.y < b.y; }
^
10 errors generated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.