Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Shafeeq Ahmed
6,058 Points@font-face
font-family: 'Abolition Regular'; src: url('../fonts/abolition-regular-webfont.eot'); src: url('../fonts/abolition-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/abolition-regular-webfont.woff') format('woff'), url('../fonts/abolition-regular-webfont.ttf') format('truetype');
In the code above: Why the format of the web font is specified with the keyword format. from line 3
1 Answer
rydavim
18,814 PointsPerhaps Guil Hernandez can drop in and clarify, but the format('some format') syntax seems to be optional. As far as I know, the below code is valid:
font-family: 'Abolition Regular';
src: url('../fonts/abolition-regular-webfont.eot');
src: url('../fonts/abolition-regular-webfont.eot?#iefix'),
url('../fonts/abolition-regular-webfont.woff'),
url('../fonts/abolition-regular-webfont.ttf');
Shafeeq Ahmed
6,058 PointsShafeeq Ahmed
6,058 PointsTHanks rydvim