void ofApp::setup(){ ofTrueTypeFontSettings settings("Serif", 12); settings.antialiased = true; settings.dpi = 72; settings.direction = OF_TTF_LEFT_TO_RIGHT; settings.addRanges(ofAlphabet::Japanese); settings.addRanges(ofAlphabet::Latin); m_gui.setup(); m_gui.setPosition(x,y); m_gui.loadFont(settings); m_gui.add(m_startbtn.setup("開始",false)); ..........................

This code is working in linux .
But if I run this code in web,it crashs.
error code is
exception thrown: 9624424 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
printErr @ OFNewPlayer.html?http%3A%2F%2Fmonkeytalk.jp%2Ffiles%2Fvideos%2F2018%2F10%2F08%2F153900335055956-sd.mp4:153
OFNewPlayer.js:1 Uncaught 9624424 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
If I commet out

m_gui.loadFont(settings);

this app is working in web .
So this error come from loadfont
But I cannot find how to run loadfont in web.
Please tell me how to do it.

At first add link frag -s DISABLE_EXCEPTION_CATCHING=0
And run
It say loadfont file name error
so I changed code

    ofTrueTypeFontSettings settings("ipagp.ttf", 12);
    settings.antialiased = true;
    settings.dpi = 72;
    settings.direction = OF_TTF_LEFT_TO_RIGHT;
    settings.addRanges(ofAlphabet::Japanese);
    settings.addRanges(ofAlphabet::Latin);
    m_gui.setup();
    m_gui.setPosition(x,y);
    m_gui.loadFont(settings);
   m_gui.add(m_startbtn.setup("開始",false));

and I added /data/ipagp.ttf
And run
Result:(in chrome)
exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
at wasm-function[609]:65
at wasm-function[9659]:1589
at wasm-function[10189]:630
at wasm-function[7056]:174
at wasm-function[1115]:877
at wasm-function[11831]:17
at Object.Module.dynCall_iiii (http://localhost:6931/OFNewPlayer.js:1:661075)
at invoke_iiii (http://localhost:6931/OFNewPlayer.js:1:373628)
at wasm-function[7137]:123
at wasm-function[11737]:18
couldn’t lock 16384 bytes of memory (secret_session):

Result:(firefox)
exception thrown: RuntimeError: index out of bounds,@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[9659]:0x49c6bd
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[10189]:0x512175
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[7056]:0x30bc14
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[1115]:0x72880
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11831]:0x65cee8
Module.dynCall_iiii@http://localhost:6931/OFNewPlayer.js:1:661045
invoke_iiii@http://localhost:6931/OFNewPlayer.js:1:373606
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[7137]:0x3166a3
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11737]:0x658992
Module.dynCall_viii@http://localhost:6931/OFNewPlayer.js:1:668240
invoke_viii@http://localhost:6931/OFNewPlayer.js:1:384388
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[8698]:0x3f6ee9
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[12155]:0x6687c5
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11384]:0x64505e
Module.dynCall_vi@http://localhost:6931/OFNewPlayer.js:1:663517
invoke_vi@http://localhost:6931/OFNewPlayer.js:1:377700
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[16076]:0x74bf05
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[4094]:0x20c561
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[1009]:0x57735
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11831]:0x65cee8
Module.dynCall_iiii@http://localhost:6931/OFNewPlayer.js:1:661045
invoke_iiii@http://localhost:6931/OFNewPlayer.js:1:373606
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[1259]:0x86780
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11831]:0x65cee8
Module.dynCall_iiii@http://localhost:6931/OFNewPlayer.js:1:661045
invoke_iiii@http://localhost:6931/OFNewPlayer.js:1:373606
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[2343]:0x119b3e
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[4028]:0x208260
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[13336]:0x6a225b
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11709]:0x652080
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[5314]:0x2616cd
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[9283]:0x4580f7
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[11471]:0x648927
Module.dynCall_ii@http://localhost:6931/OFNewPlayer.js:1:659905
invoke_ii@http://localhost:6931/OFNewPlayer.js:1:371763
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[609]:0x33636
@http://localhost:6931/OFNewPlayer.wasm:wasm-function[10323]:0x535aa3
Module._main@http://localhost:6931/OFNewPlayer.js:1:657835
callMain@http://localhost:6931/OFNewPlayer.js:1:673968
doRun@http://localhost:6931/OFNewPlayer.js:1:674641
run/<@http://localhost:6931/OFNewPlayer.js:1:674809

I cannot solve this

Sorry for bumping the old thread, but I have the same problem, I can not load fonts anymore with Emscripten. With an older version of OF / Emscripten it was possible:
https://arturocastro.net/files/of-emscripten/fontsExample/
And my own old example: http://puredata.handmadeproductions.de/ (be careful, the sound that you can toggle is quite loud…) Does anyone know how to fix that or can reproduce the error (I already opened a Github issue about two months ago… True Type Font not working with Emscripten · Issue #6745 · openframeworks/openFrameworks · GitHub )?
This is the error message from the official fontsExample (most examples without fonts that I tested do work with Emscripten):

(index):1 exception thrown: RuntimeError: function signature mismatch,RuntimeError: function signature mismatch
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[4065]:0x1a77d9
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[711]:0x32caf
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[6948]:0x33c3b9
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[6951]:0x33d3c7
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[957]:0x5661e
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[4071]:0x1a7d84
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[2270]:0x11ab0a
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[675]:0x304de
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[397]:0x1211e
    at https://videoplayerchrome.handmadeproductions.de/fontsExample.wasm:wasm-function[2452]:0x1375a9
printErr @ (index):1
callMain @ fontsExample.js:1
doRun @ fontsExample.js:1
(anonymous) @ fontsExample.js:1
setTimeout (async)
run @ fontsExample.js:1
runCaller @ fontsExample.js:1
removeRunDependency @ fontsExample.js:1
receiveInstance @ fontsExample.js:1
receiveInstantiatedSource @ fontsExample.js:1
Promise.then (async)
(anonymous) @ fontsExample.js:1
Promise.then (async)
instantiateAsync @ fontsExample.js:1
createWasm @ fontsExample.js:1
(anonymous) @ fontsExample.js:1
fontsExample.js:1 Uncaught RuntimeError: function signature mismatch
    at fontsExample.wasm:0x1a77d9
    at fontsExample.wasm:0x32caf
    at fontsExample.wasm:0x33c3b9
    at fontsExample.wasm:0x33d3c7
    at fontsExample.wasm:0x5661e
    at fontsExample.wasm:0x1a7d84
    at fontsExample.wasm:0x11ab0a
    at fontsExample.wasm:0x304de
    at fontsExample.wasm:0x1211e
    at fontsExample.wasm:0x1375a9
(anonymous) @ fontsExample.wasm:0x1a77d9
(anonymous) @ fontsExample.wasm:0x32caf
(anonymous) @ fontsExample.wasm:0x33c3b9
(anonymous) @ fontsExample.wasm:0x33d3c7
(anonymous) @ fontsExample.wasm:0x5661e
(anonymous) @ fontsExample.wasm:0x1a7d84
(anonymous) @ fontsExample.wasm:0x11ab0a
(anonymous) @ fontsExample.wasm:0x304de
(anonymous) @ fontsExample.wasm:0x1211e
(anonymous) @ fontsExample.wasm:0x1375a9
(anonymous) @ fontsExample.wasm:0x251809
(anonymous) @ fontsExample.wasm:0x2b13cc
(anonymous) @ fontsExample.wasm:0x2c3e23
(anonymous) @ fontsExample.wasm:0x277ff2
(anonymous) @ fontsExample.wasm:0x2e25a0
Fc @ fontsExample.wasm:0x2c36e6
Module._main @ fontsExample.js:1
callMain @ fontsExample.js:1
doRun @ fontsExample.js:1
(anonymous) @ fontsExample.js:1
setTimeout (async)
run @ fontsExample.js:1
runCaller @ fontsExample.js:1
removeRunDependency @ fontsExample.js:1
receiveInstance @ fontsExample.js:1
receiveInstantiatedSource @ fontsExample.js:1
Promise.then (async)
(anonymous) @ fontsExample.js:1
Promise.then (async)
instantiateAsync @ fontsExample.js:1
createWasm @ fontsExample.js:1
(anonymous) @ fontsExample.js:1

And it just shows a grey screen (I guess it is the background color).
I use Ubuntu with OF 0.11.2 and Emscripten sdk-1.40.1-64bit.

Actually it works, if I set anti aliasing of the font to false:

	verdana14.load("verdana.ttf", 14, false);
	verdana14.setLineHeight(18.0f);
	verdana14.setLetterSpacing(1.037);
	verdana30.load("verdana.ttf", 30, false);
	verdana30.setLineHeight(34.0f);
	verdana30.setLetterSpacing(1.035);
	verdana14A.load("verdana.ttf", 14, false);
	verdana14A.setLineHeight(18.0f);
	verdana14A.setLetterSpacing(1.037);
	franklinBook14.load("frabk.ttf", 14,false);
	franklinBook14.setLineHeight(18.0f);
	franklinBook14.setLetterSpacing(1.037);
	franklinBook14A.load("frabk.ttf", 14, false);
	franklinBook14A.setLineHeight(18.0f);
	franklinBook14A.setLetterSpacing(1.037);

Is there a way to enable anti aliasing for fonts with Emscripten?
Here is the app with antialiasing: Emscripten-Generated Code
And here (from me) without: https://gameoflife3d.handmadeproductions.de/

I think I found a solution:
I changed line 617 from ofTrueTypeFont.cpp from:

auto err = FT_Load_Glyph( face.get(), FT_Get_Char_Index( face.get(), utf8 ), settings.antialiased ?  FT_LOAD_FORCE_AUTOHINT : FT_LOAD_DEFAULT );
auto err = FT_Load_Glyph( face.get(), FT_Get_Char_Index( face.get(), utf8 ), FT_LOAD_DEFAULT);

I am courius if there are any drawbacks with changing the line, but so far it seems to work well.