Yes, that did help, thank you! Unfortunately, it seems like this patch
hasn't made it into FreeType 2.5.3 at least, and it is no longer correct
in two places.
For anyone who has to apply it by hand to 2.5.3 version, here's what
needs to be changed:
1) cid_parse_font_matrix now has two more places where error value is
returned. Since this function actually needs to be void, you'll have to
change them to "return;" too.
2) af_dummy_hints_apply, the 3rd param no longer has type
AF_ScriptMetrics, but rather AF_StyleMetrics.
01.05.2014 15:47, Jukka Jylänki пишет:
Have a look at this change:
https://github.com/juj/emscripten-freetype/commit/6b415373577fef697fd2ad6472939eb221d64a13
. Does that help?
2014-05-01 14:22 GMT+03:00 Max Savenkov <[email protected]
<mailto:[email protected]>>:
I have compiled FreeType into JavaScript using vs-tool/Visual
Studio 2010, and linked my program with it. But during runtime, in
one of the calls inside library, functions table seems to be
messed up - instead of proper FreeType function, unrelated
function from another library gets called. It seems that this is a
linking problem. How do I debug this?
My current setup is as follows:
1) Compile FreeType 2.5.3 in Visual Studio 2010, producing
libfreetype.bc, rename it to libfreetype.so to satisfy CMake
2) Compile Allegro library, which uses FreeType
(liballegro_monolith-debug.so)
3) Compile my project, spefiying -lallegro_monolith-debug and
-lfreetype
I'm using Emscripten SDK v1.16.0. Most of FreeType works,
surprisingly, but because this single call gone awry, I'm can't
specify fonts size - FreeType renders them all in default size :)
--
You received this message because you are subscribed to the Google
Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/emscripten-discuss/icfSTGz_dCg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.