lingo1357 Posted December 31, 2014 Share Posted December 31, 2014 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 More sharing options...
Ingolme Posted December 31, 2014 Share Posted December 31, 2014 I think you need to wrap each font in its own @font-face ruleset. Link to comment Share on other sites More sharing options...
lingo1357 Posted December 31, 2014 Author Share Posted December 31, 2014 I think you need to wrap each font in its own @font-face ruleset. Thanks for the reply. Can you please explain more? Link to comment Share on other sites More sharing options...
Ingolme Posted December 31, 2014 Share Posted December 31, 2014 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);} 1 Link to comment Share on other sites More sharing options...
tejasamrute Posted January 2, 2015 Share Posted January 2, 2015 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now