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

inline noto-subset font load failed in Firefox #8472

Closed
indirectlylit opened this issue Sep 28, 2021 · 0 comments · Fixed by #8756
Closed

inline noto-subset font load failed in Firefox #8472

indirectlylit opened this issue Sep 28, 2021 · 0 comments · Fixed by #8756

Comments

@indirectlylit
Copy link
Contributor

indirectlylit commented Sep 28, 2021

Observed behavior

In Firefox on Mac, only the full and common fonts appear to be loading. The base64-encoded css-inlined subset font is not.

Probably related to khaledhosny/ots#52

Errors and logs

Normal weight:

downloadable font: glyf: zero-length table (font-family: "noto-subset" style:normal weight:400 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABRAAAAAJkdQT1NEdkx1AAAUaAAAACBHU1VCkxWCFgAAFIgAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=
downloadable font: rejected by sanitizer (font-family: "noto-subset" style:normal weight:400 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABRAAAAAJkdQT1NEdkx1AAAUaAAAACBHU1VCkxWCFgAAFIgAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=
downloadable font: font load failed (font-family: "noto-subset" style:normal weight:400 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABRAAAAAJkdQT1NEdkx1AAAUaAAAACBHU1VCkxWCFgAAFIgAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=

Bold weight:

downloadable font: glyf: zero-length table (font-family: "noto-subset" style:normal weight:700 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABQoAAAAJkdQT1NEdkx1AAAUUAAAACBHU1VCkxWCFgAAFHAAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=
downloadable font: rejected by sanitizer (font-family: "noto-subset" style:normal weight:700 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABQoAAAAJkdQT1NEdkx1AAAUUAAAACBHU1VCkxWCFgAAFHAAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=
downloadable font: font load failed (font-family: "noto-subset" style:normal weight:700 stretch:100 src index:0) source: data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgBjAAQAABQoAAAAJkdQT1NEdkx1AAAUUAAAACBHU1VCkxWCFgAAFHAAAA … FAABAAAAAAABAAAACgAcAB4AAURGTFQACAAEAAAAAP//AAAAAAAAAAEAAAAKADIANAAEREZMVAAaY3lybAAkZ3JlawAkbGF0bgAkAAQAAAAA//8AAAAAAAAAAAAAAAA=

Expected behavior

The inline font is intended to prevent a flash of unstyled text and improve render performance.

User-facing consequences

Possibly slower loads or shifting typography

Steps to reproduce

Load Kolibri on Firefox on Mac

Context

latest develop

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

Successfully merging a pull request may close this issue.

1 participant