@ font-face在我的ttf字体不工作在所有浏览器 [英] @font-face not working for my ttf font in all browsers

查看:174
本文介绍了@ font-face在我的ttf字体不工作在所有浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ttf字体为我的网站使用@ font-face在css像这样

I used ttf font for my website using @font-face in css like this

@font-face
{

font-family: myFirstFont;

src: url('tamil.ttf');


} 

.tlan {
font-family: myFirstFont;
color:#039;
}

tamil.ttf不是英语字体。
我无法解决这个问题。

tamil.ttf is not english language font. I can't able to solve this problem ..

点击这个链接,关于这个@ font-face问题的所有我的东西。 http://aaritcare.com/font%20problem/

follow this link, for all my stuffs regarding this @font-face problem. http://aaritcare.com/font%20problem/

我附加了我的字体文字。

i am attached word document with my font .

推荐答案

try this :

    @font-face required eot, woff, svg, font format.

    @font-face {
     font-family: "tamil";
     src: url("tamil.eot") format('embedded-opentype'), /* EDIT correction on this line */
     url('tamil.woff') format('woff'),
     url('tamil.ttf') format('truetype'),
     url('tamilvg#') format('svg');
     font-weight:bold;
     font-style:normal;
    }

or 

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

我确定如果你想使@fontface套件 http://www.fontsquirrel.com/

and i am sure if you want to make @fontface kit on this sites http://www.fontsquirrel.com/

这篇关于@ font-face在我的ttf字体不工作在所有浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆