Jump to content
php.lv forumi

Font-face un IE


eT`
 Share

Recommended Posts

Sveiki, kā var panākt lai uz IE rādītu manus custom fontus?

 

Mans CSS:

@font-face{ 
    font-family: 'AVGR';
    src:url('avgr.eot');
    src:url('avgr.eot?#iefix') format('embedded-opentype'),
        url('avgr.svg') format('svg'),
        url('avgr.woff') format('woff'),
        url('avgr.ttf') format('truetype');
}

 

httpd.conf pieliku šo:

<FilesMatch "\.(ttf|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

 

 

bet IE9 neattēlo fontus.

konsolē ieraudzīju šādus smukus errorus:

CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. 
avgr.ttf
CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. 
avgrb.ttf
Edited by eT`
Link to comment
Share on other sites

Lieto šo ģenerātoru: http://www.fontsquirrel.com/

 

Settingos ieliec, Font Formats: svg. 

 

Subsetting: saliec krievu, latviešu, en supportu. 

 

Visam vajadzētu uzģenerēties pareizi. Ja nē, paņem kādu citu fontu un tur iedos tev css settingus. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...