GIS Posted November 4, 2013 Share Posted November 4, 2013 i created a page for testing diffrent fonts but its not working.cant find the problem maybe you can help me . thanks @charset "utf-8";@font-face { font-family:'lottepaperfang'; src: url(‘}@font-face { font-family: 'Astri1'; src: url(‘}@font-face { font-family:'Astronau' ; src: url(‘}@font-face { font-family:'MarketDeco' ; src: url(‘}@font-face { font-family: Astri2; src: url(../Homepage2/fonts/Astri2.ttf);}@font-face { font-family: 'lekton005' ; src: url(‘}@font-face { font-family:'Normat' ; src: url(‘}@font-face { font-family: 'secrcode'; src: url(‘}@font-face { font-family: tm; src: url(../Homepage2/fonts/tm.ttf);}h1{ color: black; text-align: left; font-size: 18pt; font-family: lekton005;}h2{ color: black; text-align: left; font-size: 18pt; font-family: secrcode;}h3{ color: black; text-align: left; font-size: 18pt; font-family: MarketDeco;}h4{ color: black; text-align: left; font-size: 18pt; font-family: Normat;}h5{ color: black; text-align: left; font-size: 18pt; font-family:Astronau ;}h6{ color: black; text-align: left; font-size: 18pt; font-family:Astri2 ;}#test{ font-family: tm; color: black; text-align: left; font-size: 18pt;} Link to comment Share on other sites More sharing options...
JustMike Posted November 5, 2013 Share Posted November 5, 2013 Try something like this: @font-face { font-family:'lottepaperfang'; src: url('./fonts/lottepaperfang.ttf');}@font-face { font-family:'ASTRONAU'; src: url('./fonts/ASTRONAU.ttf');}@font-face { font-family:'MarketDeco'; src: url('./fonts/Market_Deco.ttf');} My ttf files are saved in site_directory/fonts Link to comment Share on other sites More sharing options...
shakir Posted November 23, 2013 Share Posted November 23, 2013 You could use this code @font-face {font-family: myFirstFont;src: url('Sansation_Light.ttf'), url('Sansation_Light.eot'); /* IE9 */} whichever i do. 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