Jump to content

fontface dosen't work


lingo1357
 Share

Recommended Posts

Hello,

 

I use ASP.net.

My fontface code is:

@font-face{     font-family: Tahoma;    src: url(../font/Tahoma.ttf );    font-family:Homa;   src: url(../font/Homa.ttf);   font-family:Yagut;   src:url(../font/Yagut.ttf);   font-family:TitrBold;   src:url(../font/TitrBold.ttf); }

then i use these fonts in my css. But it doesn't work!!

What is my mistake? what is wrong with it?

 

thanks

Link to comment
Share on other sites

This is what I mean:

@font-face {    font-family: Tahoma;    src: url(../font/Tahoma.ttf );}@font-face {    font-family: Homa;    src: url(../font/Homa.ttf);}@font-face {    font-family: Yagut;    src:url(../font/Yagut.ttf);}@font-face {    font-family: TitrBold;    src:url(../font/TitrBold.ttf);}
  • Like 1
Link to comment
Share on other sites

@font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('webfont.woff2') format('woff2'), /* Super Modern Browsers */ url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */}

 

 

you will need eot,woff,woff2 with ttf to show the desired font in all browsers....you can easily convert ttf to other formats with http://www.everythingfonts.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...