Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in Firefox #65

Open
o-t-w opened this issue Jan 15, 2018 · 14 comments
Open

Not working in Firefox #65

o-t-w opened this issue Jan 15, 2018 · 14 comments

Comments

@o-t-w
Copy link

o-t-w commented Jan 15, 2018

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
Copy link
Owner

djrrb commented Jan 16, 2018

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
Copy link
Collaborator

RoelN commented Jan 16, 2018

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
Copy link
Owner

djrrb commented Jan 16, 2018

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
Copy link
Collaborator

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

@RoelN
Copy link
Collaborator

RoelN commented Jul 2, 2024

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
Copy link
Collaborator

What color support does Photoshop claim to have?

  • BungeeTint-Regular: good old COLRv0, does not contain an SVG fallback
  • BungeeSpice-Regular: COLRv1, does contain an SVG fallback

@RoelN
Copy link
Collaborator

RoelN commented Jul 2, 2024

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
Copy link
Collaborator

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
Copy link
Collaborator

RoelN commented Jul 2, 2024

Sorry yeah, both are black and white in Photoshop!

@djrrb
Copy link
Owner

djrrb commented Jul 5, 2024

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
Copy link
Collaborator

justvanrossum commented Jul 6, 2024

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

@jmsole
Copy link

jmsole commented Oct 18, 2024

I don't have a ton of experience with color fonts but recently I've had to dive in a bit and from what I can tell, Adobe apps don't like it when the CPAL table has more than one color palette. I removed the last 2 palettes from Bungee Spice and re-ran maximum_color and the resulting font shows properly as a color font in InDesign, so I think that's likely where the issue lies here. I've attached it in case you want to inspect it.

Screenshot 2024-10-18 at 20 56 29

BungeeSpice-Regular.ttf.zip

@djrrb
Copy link
Owner

djrrb commented Oct 20, 2024

Thanks so much @jmsole!!

I will think about how to address this...I’d prefer to avoid removing functionality from a valid CPAL table just because Adobe apps don’t support it correctly, but since other desktop apps don’t support multiple palettes anyway, maybe it’s worth having an alt version that will at least work in Adobe apps!

@jmsole
Copy link

jmsole commented Oct 23, 2024

Happy to help. Color fonts seem to be a bit of a crazy thing, I had no idea support for color fonts was such a mess. There's still a chance the issue with Adobe apps has to do with nanoemoji not dealing well with multiple palettes, but all the SVG fonts that worked on Adobe apps that I checked had either a single palette on CPAL or straight up no CPAL at all (because they relied only on an SVG table).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants