Jump to content

using @font-face


niche
 Share

Recommended Posts

I set-up this test, but it doesn't work. I suspect I'm not using the complete name for the font (which is also installed on my system). How do I find the exact name of a font?

<html><head><style type="text/css">@font-face{font-family: myFirstFont;src: url('USPSIMBStandard Standard Medium.ttf'),}div{font-family:myFirstFont;}</style></head><body><div>DDAFFAAFDFFAADAADDADAADAAAATTTFFADFATTDDFFDFAAADDDFTDDADTFDTDFDDD</div></body></html>

Edited by niche
Link to comment
Share on other sites

I found the name in properties. It's called USPSIMBStandard.ttf, but the script still doesn't work and I changed to the correct font name. Any ideas?

Link to comment
Share on other sites

If you mean loading the script from the url. yes. In fact, I sent the script at http://w3schools.com/css3/tryit.asp?filena...-face_rule_bold to my web host and received a different display than the from the display in in the tutorial. Any thoughts?

Link to comment
Share on other sites

Sometimes the sweetest answers are the ones you find yourself (the font was missing from the folder).Thanks to thescientist for the help.

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...