Templarian / MaterialDesign-Webfont

@mdi/font Dist for Material Design Icons.
https://materialdesignicons.com
Other
402 stars 157 forks source link

IE11 issue: Permission must be Installable. #60

Closed d4rky-pl closed 4 years ago

d4rky-pl commented 4 years ago

When trying to use the TTF font in Internet Explorer 11, it throws an error:

@font-face failed OpenType embedding permission check. Permission must be Installable.

Setting the permission on the TTF font fixes the issue. This is necessary when using libraries like @expo/vector-icons that use a single file for all platforms

Templarian commented 4 years ago

Not sure how to fix this or what this impacts exactly? Our entire build package is open source and uses the webfont package. 😕

https://github.com/Templarian/MaterialDesign-Font-Build

d4rky-pl commented 4 years ago

Font Awesome had the same issue, this is how they solved it: https://github.com/FortAwesome/Font-Awesome/issues/2517

tl;dr running https://github.com/hisdeedsaredust/ttembed during the build process

d4rky-pl commented 4 years ago

ttembed-js is written in pure JS and solves the issue perfectly

Templarian commented 4 years ago

Oops, totally forgot to add this to the build process step before running 4.9.95 release.

We'll be adding this to the 5.0 release. Sorry about that.

d4rky-pl commented 4 years ago

@Templarian

yarn ttembed-js -n materialdesignicons-webfont.ttf
fsType is 0000; no action will be taken if run without -n.

This issue can be closed, thank you!