crowbar icon indicating copy to clipboard operation
crowbar copied to clipboard

Feature Request - surface rejected font error message?

Open drott opened this issue 1 year ago • 2 comments

I tried uploading a particular local test font (can share separately), and the top bar shook briefly in red, indicating the Crowbar was unable to process the font. That was a useful signal, but it would be good to see an error message as a popup, or just in the JS console indicating why the font was rejected.

drott avatar Dec 17 '24 09:12 drott

Will do, although the actual "error" case is trivial:

      if (
        !name.endsWith(".otf") &&
        !name.endsWith(".ttf") &&
        !name.endsWith(".ttc") &&
        !name.endsWith(".otc")
      ) {
        setShaking(true);

simoncozens avatar Dec 17 '24 09:12 simoncozens

Ah, good to know. In my case, the extension (and format) was .woff2 - will decompress before uploading.

drott avatar Dec 17 '24 10:12 drott