Jump to content

fontface dosen't work


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 post
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 post
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 post
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...
×
×
  • Create New...