@font-face not embedding on mobile Safari (iPhone/iPad)

后端 未结 6 1388
不知归路
不知归路 2020-12-09 10:48

I\'m embedding fonts on a mobile website using @font-face (css from FontSquirrel). When I preview in desktop Safari or Chrome, the fonts embed fine, but they do

6条回答
  •  执念已碎
    2020-12-09 11:08

    I had been working with this for a hour before realizing my stupid mistake.

    Mobile Safari is CASE SENSITIVE for the fonts, while Desktop Safari is not.

    If your font is titled: font.svg, you must add it exactly like it is. If you add it with a Capital F, Desktop Safari won't care, but mobile will.

提交回复
热议问题