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

BravuraText.otf (opentype) doesn't load in browsers #72

Open
ErikNatanael opened this issue Jul 15, 2022 · 4 comments
Open

BravuraText.otf (opentype) doesn't load in browsers #72

ErikNatanael opened this issue Jul 15, 2022 · 4 comments

Comments

@ErikNatanael
Copy link

Hi!

I'm getting errors trying to load the latest BravuraText.otf (v1.392) in both Firefox and Chromium. The .woff2 and .woff version work, but the vertical spacing ligatures then don't. The Bravura.otf font loads, but then vertical and horizontal spacing is handled differently.

The errors are in Firefox:

downloadable font: cmap: Final segment start and end must be 0xFFFF (0xF52B-0xFFFF) (font-family: "BravuraText" style:normal weight:400 stretch:100 src index:0) source: http://localhost:3000/BravuraText.otf 
downloadable font: cmap: Failed to parse format 4 cmap subtable 0 (font-family: "BravuraText" style:normal weight:400 stretch:100 src index:0) source: http://localhost:3000/BravuraText.otf 
downloadable font: cmap: Failed to parse table (font-family: "BravuraText" style:normal weight:400 stretch:100 src index:0) source: http://localhost:3000/BravuraText.otf 
downloadable font: rejected by sanitizer (font-family: "BravuraText" style:normal weight:400 stretch:100 src index:0) source: http://localhost:3000/BravuraText.otf 

and in Chromium:

Failed to decode downloaded font: http://localhost:3000/BravuraText.otf
OTS parsing error: cmap: Failed to parse table

Of course I can position things manually with CSS, but using the ligatures would be handy.

Using the latest BravuraText.woff2 font, vertical spacing doesn't work. Copying and pasting the text into LibreOffice displays the correct vertical position offsets however.

Using BravuraText.woff2 version 1.37 as referenced in #25 I get the same error as using the latest .otf font and no characters work.

@legion80
Copy link

I can confirm that the OTF font loads in Safari, but not Firefox or Chrome. And that the ligatures do not work in the WOFF versions.

Seems like the vertical spacing issue was known but the fix might not have been applied to the WOFF versions. https://stackoverflow.com/a/43681312

@legion80
Copy link

Chrome and Firefox leverage OTF Sanitizer which is outputting these errors, which now states on the .otf:

cmap: Out of order end range (65535 <= 65535)
cmap: Failed to parse format 4 cmap subtable 0

@FredericoGauz
Copy link

Hi, thanks for the amazing project, is there a solution to this?

I spent a good time trying to get the ligatures working with the woff2 format with no success and can't get the otf working on browsers as well.

@dspreadbury
Copy link
Collaborator

Sorry for the delay in coming back to you. I've not had a chance to look into this further as yet.

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

4 participants