Why don't Base64 Embedded fonts work in IE11 if “font download” property is disabled?

对着背影说爱祢 提交于 2019-12-23 12:31:45

问题


So at face value, this makes sense -- if IE disables "font download," it shouldn't download, fine, I accept that.

HOWEVER -- what about using base64 fonts? These are embedded directly in CSS / do not reference a physical file, therefore no font should need to be downloaded, right?

At first I thought that maybe IE11 didn't like/support base64, but I can verify that it does work there when I use only a base64 font option.

I wasn't able to find any specs on this, or much info on the breadth of what "font download: disable" really means. I did see some similar posts but with no answers, and not asking the same question.

Anyone have a better explanation for this?


回答1:


Per a memo on the base64 spec:

  1. Security

    Interpretation of the data within a "data" URL has the same security considerations as any implementation of the given media type. An application should not interpret the contents of a data URL which is marked with a media type that has been disallowed for processing by the application's configuration.

Sources: http://www.ietf.org/rfc/rfc2397.txt http://sosweetcreative.com/2613/font-face-and-base64-data-uri



来源:https://stackoverflow.com/questions/35856032/why-dont-base64-embedded-fonts-work-in-ie11-if-font-download-property-is-disa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!