@fontface question

Hi!

Reading CSS Missing Manual third edition.
I'm on chapter 6 (Fonts)

@font-face {
font-family: 'PTSans';
src: url('fonts/PTSansRegular.eot');
src: url('fonts/PTSansRegular.eot?#iefix') format('embedded-opentype'),
url('fonts/PTSansRegular.woff') format('woff'),
url('fonts/PTSansRegular.ttf') format('truetype'),
url('fonts/PTSansRegular.svg') format('svg');
font-weight: normal;
font-style: normal;
}

Why is it that there are two 'src' ?
In other words, why couldn't the code be like this :

@font-face {
font-family: 'PTSans';

Help with @Font-Face

Hey all,

Just wondering if anyone could help me figuring out why @Font-Face is not working on my site.

http://students.hthma.hightechhigh.org/~jarmenta/site/

http://students.hthma.hightechhigh.org/~jarmenta/site/indexstyle.css

Thanks!

Syndicate content