2

I'm having a problem with font face.

I added code to make the font work in my page, but when I type any keywords the font does not work and shows string keywords.

This is the css code:

/* @font-face kit by Fonts2u (http://www.fonts2u.com) */ @font-face {font-family:"GE Dinar One Medium";src:url("GE_Dinar_One_Medium.eot?") format("eot"),url("GE_Dinar_One_Medium.woff") format("woff"),url("GE_Dinar_One_Medium.ttf") format("truetype"),url("GE_Dinar_One_Medium.svg#GEDinarOne-Medium") format("svg");font-weight:normal;font-style:normal;}

p{font-family:"GE Dinar One Medium";}

and this is the html:

<p>ahmed mohamed احمد محمد
<br />
انا من مدينة المنصورة مصر
</p>

It's just a test, but the font does not work and I'm sure its font url is right. All fonts type are in the same folder

What is the problem?

bfavaretto
  • 70,503
  • 15
  • 107
  • 148

1 Answers1

0

You may need to add the source of the font family.

See this post How to add some non-standard font to a website?

<style type="text/css">
@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>
Seth McClaine
  • 7,625
  • 6
  • 37
  • 56
  • i try it but nothing to work :( http://www.elfnoon.com/demo/kleeja/uploads/1376362721651.png http://www.elfnoon.com/demo/kleeja/uploads/1376362721852.png not work at chrome , opera and work at ie , firefox , safari – ẪĦmẻḓ MøĦẫmẻḓ Aug 13 '13 at 02:59