Exporting images on webAPI goes off before the latex fonts are loaded

xdnoam shared this problem 11 months ago
Not a Problem

When using Geogebra javascript API, I implemented a system that should save all the graphs in a documents as an image (with either getPNGBase64 or exportSVG) for caching, as I mostly use static graphs, but I do use a lot of them at the same time and when gathered up they can really cause the browser to get stuck, and sometimes even crash.

The problem is, "onLoadApplet" seems to be called before all the latex fonts are loaded, which results in the images being saved without the text elements appearing.


I would really like to be able to cache my graphs as images, and would not like to do stupid things like adding an absurd timeout before I create the images...


Thanks in advanced

Best Answer

Comments (2)

photo
1

Amazing! thank you very much!!

© 2021 International GeoGebra Institute