djrrb / Bungee

A chromatic signage typeface for vertical and horizontal setting.
https://djr.com/bungee
SIL Open Font License 1.1
336 stars 42 forks source link

Not working in Firefox #65

Open o-t-w opened 6 years ago

o-t-w commented 6 years ago

I am running Firefox Nightly (the newest version of the browser). Bungee is black and white in Chrome Canary and Safari Technology Preview (as expected). Unexpectedly, in Firefox Nightly Bungee isn't appearing at all, instead I get Times New Roman.

The font is generating some errors in the console:

downloadable font: Layout: DFLT script doesn't satisfy the spec. DefaultLangSys is NULL (font-family: "bungee" style:normal weight:normal stretch:normal src index:0) source: file:///Users/owo3732/rand/animate/BungeeColor-Regular_svg.woff unknown:11:15 downloadable font: Layout: Failed to parse script table 0 (font-family: "bungee" style:normal weight:normal stretch:normal src index:0) source: file:///Users/owo3732/rand/animate/BungeeColor-Regular_svg.woff unknown:11:15 downloadable font: GSUB: Failed to parse script list table (font-family: "bungee" style:normal weight:normal stretch:normal src index:0) source: file:///Users/owo3732/rand/animate/BungeeColor-Regular_svg.woff unknown:11:15 downloadable font: GSUB: Failed to parse table (font-family: "bungee" style:normal weight:normal stretch:normal src index:0) source: file:///Users/owo3732/rand/animate/BungeeColor-Regular_svg.woff unknown:11:15 downloadable font: rejected by sanitizer (font-family: "bungee" style:normal weight:normal stretch:normal src index:0) source: file:///Users/owo3732/rand/animate/BungeeColor-Regular_svg.woff

Love the font btw!

djrrb commented 6 years ago

Hi again Oliver! I can duplicate this issue...it seems as if OpenType Sanitiser is not the biggest fan of the most recent version of BungeeColor.

ERROR: Layout: DFLT script doesn't satisfy the spec. DefaultLangSys is NULL
ERROR: Layout: Failed to parse script table 0
ERROR: GSUB: Failed to parse script list table
ERROR: GSUB: Failed to parse table
Failed to sanitize file!

I’m not sure why this used to work and no longer does.

I’ve started a branch with a previous version of Bungee that Firefox seems to think is okay. But Photoshop doesn’t seem to like that one, so I’m not gonna merge it yet. I’ll leave this issue open while I try to sort out the root cause, and in the mean time you can go to the color-font-ots branch and try those files.

RoelN commented 6 years ago

It looks like something went wrong while optimising the fonts. I still have to dive deeper into what exactly mangled the GSUB table.

In the mean time I checked out the color-font-ots branch. When selecting Bungee, Photoshop freezes — is that what you're experiencing, @djrrb? The font works in Illustrator and Firefox, though!

djrrb commented 6 years ago

When selecting Bungee, Photoshop freezes — is that what you're experiencing, @djrrb?

Yup. 😭

I was hoping to add some variants to this à la Trajan Color Concepts, so I wonder if it makes sense to try generating a fresh version. I am under a few deadlines this month but will try to give it a shot!

justvanrossum commented 2 months ago

I am pretty sure this issue is obsolete with the recent releases, but it would be great if someone could check.

RoelN commented 2 months ago

Newest version loads without problem in Firefox 127.0.2 on a fresh Mac (BungeeSpice-Regular.ttf and BungeeTint-Regular.ttf). They're black-and-white in Photoshop, but they do load.

justvanrossum commented 2 months ago

What color support does Photoshop claim to have?

RoelN commented 2 months ago

As far as I know, they only support Adobe's OT-in-SVG, no COLR at all. So the SVG fallback doesn't seem to be triggered for BungeeTint-Regular in Photoshop!

justvanrossum commented 2 months ago

BungeeTint does not contain an SVG fallback, so I'm afraid that one is expected to not work in Photoshop.

But BungeeSpice does, and you say that's also not working, right?

RoelN commented 2 months ago

Sorry yeah, both are black and white in Photoshop!

djrrb commented 2 months ago

Confirming this is also the case for me in Photoshop and Illustrator 2024

Screenshot 2024-07-05 at 5 52 37 PM Screenshot 2024-07-05 at 5 51 53 PM

Would love to have working SVG versions in the Release, even if they aren’t part of the Google Fonts distribution

justvanrossum commented 2 months ago

I opened an issue on the nanoemoji repo, of which the "maximum_color" tool is a part, which builds the SVG fallback: https://github.com/googlefonts/nanoemoji/issues/469