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

CSS CSS Basics (2014) Enhancing the Design With CSS Web Fonts with @font-face

pat barosy
pat barosy
6,759 Points

Font-face still viable in 2018

Hello all,

Is font-face still a useful option in light of all the fonts and ease of use that Google fonts provides?

Thank you

3 Answers

Steven Parker
Steven Parker
231,275 Points

The "font-face" mechanism allows you to load in new fonts, including ones from Google. You might be using a "link" to load in a stylesheet for a font, but if you look at that stylesheet, you will find that it contains "@font-face" to actually load the font.

pat barosy
pat barosy
6,759 Points

Thanks! I actually never noticed that. Great answer. Which is the more preferred method for developers font-face or Google fonts?

Steven Parker
Steven Parker
231,275 Points

You're always using "@font-face! whether you code it yourself or link to an external stylesheet.