concept @font - face in category css

This is an excerpt from Manning's book Sass and Compass in Action.
Despite the best efforts of new features such as @font-face, Cufón, and other techniques, sometimes designers must resort to a traditional method to improve web typography—swapping text for an image representation. Often used for headlines and other core page elements, images can deliver complex design elements that sometimes you can’t pull off with standard type. In those situations, many designers have felt the urge to plop an <img> tag on the page in place of the text and call it a day. For accessibility (and SEO) reasons, a much better approach is to handle this in CSS. Consider the example shown in figure 4.4, in which we’ll secretly replace the headline the user is used to seeing with our own special blend of image-powered typographic magic.
It seems no slick new CSS feature is without its hacks for Internet Explorer, and @font-face is no different
,
. But this particular CSS3 feature requires a broad range of font formats to support the most popular browsers
,
and older versions of some mobile browsers
. Though it’s convenient that Font Squirrel provides the CSS along with the font files in their “font kits,” the stylesheet assumes that you’re serving your fonts from the same folder as your stylesheets. If your fonts are located elsewhere (like an asset host as outlined in chapter 7), you’ll need to prepend that path for the url() location of each font in the declaration. Once again, Compass saves your fingers from a lot of typing, allowing you to create the same CSS with less code.
,
. But this particular CSS3 feature requires a broad range of font formats to support the most popular browsers
,
and older versions of some mobile browsers
. Though it’s convenient that Font Squirrel provides the CSS along with the font files in their “font kits,” the stylesheet assumes that you’re serving your fonts from the same folder as your stylesheets. If your fonts are located elsewhere (like an asset host as outlined in