Jump to content

using @font-face


niche

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>

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...