Skip to content

Disable native font loading in Safari 10 #352

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

Merged
merged 1 commit into from
Nov 29, 2016

Conversation

pzula
Copy link
Contributor

@pzula pzula commented Nov 29, 2016

Unfortunately, the native font load API in Safari 10 has two bugs that
cause the document.fonts.load and FontFace.prototype.load methods to
return promises that don't reliably get settled (i.e. either rejected or
resolved).

The bugs are described in more detail here:

https://bugs.webkit.org/show_bug.cgi?id=165037
https://bugs.webkit.org/show_bug.cgi?id=164902

Until patches for these bugs have landed in a stable version this pull
request will disable using the native font loading API on Safari 10. The
code only targets Safari 10 (all versions) because the patches will most
likely land before a new major version is released.

Unfortunately, the native font load API in Safari 10 has two bugs that
cause the document.fonts.load and FontFace.prototype.load methods to
return promises that don't reliably get settled (i.e. either rejected or
resolved).

The bugs are described in more detail here:

https://bugs.webkit.org/show_bug.cgi?id=165037
https://bugs.webkit.org/show_bug.cgi?id=164902

Until patches for these bugs have landed in a stable version this pull
request will disable using the native font loading API on Safari 10. The
code only targets Safari 10 (all versions) because the patches will most
likely land before a new major version is released.
@bramstein
Copy link
Contributor

Awesome, thanks a lot! 👍

@pzula pzula merged commit cbeb689 into master Nov 29, 2016
@pzula pzula deleted the pz-disable-native-font-loading-safari10 branch November 29, 2016 16:56
@zowers
Copy link

zowers commented Apr 24, 2017

both wekit bugs are marked as fixed, so they are in safari 10.1, but the fix disables native loading in all 10.x versions of safari

@zowers
Copy link

zowers commented Apr 24, 2017

as I understood @pzula pr comment you thought that next safari version would be 11, but it is 10.1 instead

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 this pull request may close these issues.

4 participants