mooman219 / fontdue

The fastest font renderer in the world, written in pure rust.
Apache License 2.0
1.38k stars 70 forks source link

Live demo error when a glagolitic character ( Ⱆ ) is used #144

Closed lmglmg closed 7 months ago

lmglmg commented 7 months ago

When a character is present, live demo produces an error in the web console, but does not show the user any message.

Error message in the web console:

GET
https://mooman219.github.io/favicon.ico
[HTTP/2 404  11ms]

Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable
    renderFontdueCharacter webpack:///./index.js?:83
    init webpack:///./index.js?:106
    init webpack:///./index.js?:105
    promise callback* webpack:///./index.js?:114
    js https://mooman219.github.io/fontdue/0.bootstrap.js:46
    __webpack_require__ https://mooman219.github.io/fontdue/bootstrap.js:93
    promise callback* webpack:///./bootstrap.js?:4
    js https://mooman219.github.io/fontdue/bootstrap.js:275
    __webpack_require__ https://mooman219.github.io/fontdue/bootstrap.js:93
    <anonymous> https://mooman219.github.io/fontdue/bootstrap.js:263
    <anonymous> https://mooman219.github.io/fontdue/bootstrap.js:266
index.js:83
mooman219 commented 7 months ago

Oh god I haven't built the web demo in... at least 20 months at this point I think. It's probably running something ancient. I can take a look.

mooman219 commented 7 months ago

Oh it's a javascript issue, I can ask the person who wrote the demo to take a look, I haven't touched JS in a while.

mooman219 commented 7 months ago

@weswigham You submitted this, I added Font.has_glyphto help :^)