crayon
crayon copied to clipboard
Throw exception if fonts are loaded before the window is loaded
Since graphical context is often tied to the window, ensure that the window instance is created before a font is loaded in the Graphics2DText library. Currently this is causing Times-New-Roman-ification in JavaScript.