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

后端 未结 6 1392
不知归路
不知归路 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:10

    Font face does work on mobile safari, i am using on iphone 3. I also copied the code from font squirl but it didn't work. Here is the updated code. Use this and it will work everywhere.

    @font-face {
        font-family: 'MyriadProBoldCondensed';
        src: url('/fonts/myriadpro-boldcond-webfont.eot#') format('eot'),
             url('/fonts/myriadpro-boldcond-webfont.woff') format('woff'),
             url('/fonts/myriadpro-boldcond-webfont.ttf') format('truetype'),
             url('/fonts/myriadpro-boldcond-webfont.svg#MyriadProBoldCondensed') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    

提交回复
热议问题