Last updated December 12, 2014. Created on April 27, 2012.
Edited by austenhufford, kreynen, emilyf, jdcreativity. Log in to edit this page.

The @font-your-face module provides an administrative interface for browsing and applying web fonts from a variety of sources for use with Themes.

The following documentation was written to explain how to configure and install @font-your-face as part of a Community Media installation. The existing @font-your-face Documentation by sreynen contains extra useful information.

As some fonts and font APIs cost money, we recommend only using the Google Fonts API.

Enabling @font-your-face

  1. Navigate to Administer > Modules
  2. In the @font-your-face block enable these modules:
  3. @font-your-face submodules to enable

  4. Scroll to the bottom of the page and click Save Configuration

Enable Fonts

Navigate to Administer > Appearance and click @font-your-face tab

To find a font, search by Name or filter by Subset. US English fonts are generally in the Latin Subset.

Click Enable underneath a chosen font to add it to your site.

Click Apply in the top right to see your enabled fonts.

Use the CSS Selector drop-down menu for each font to choose where you can use it in your theme.

Select everything (body) to use a font everywhere - this means you will not be able to use any other fonts.

@font-your-face drop-down CSS selector

Click Save Applied CSS Selectors to save changes. If you have selected everything (body) all of the onscreen text will now be rendered in this font:
Selecting everything (body) changes all website text to that font

Local Fonts

Font-your-face also enables adding local fonts, which can add unique flavors to your site.

There is detailed documentation on adding local fonts in the existing @font-your-face Documentation.

  1. Navigate to Administration > Modules and check the Local Font module and Save.
  2. Add your own local font. Navigate to Administration > Configuration > User Interface > @font-your-face settings and click on the Import Local Font tab.
  3. Browse to the appropriate font.
  4. Enable the Font as described above.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

mimes’s picture

@font-your-face is pretty useful module for web designers and themers who may wish to use custom typefaces in their sites. It does precisely what it reports itself as: provides an administrative interface for browsing and applying web fonts (using CSS @font-face, supported in popular browsers) from a variety of sources. It's remarkably easy to use as well. I didn't encounter any issues during installation, there was adequate documentation on doing most tasks, and the interface displayed was clean but extensive. The only issue I found worth mentioning is that there were only a few sources users of this module could use web fonts from (Google Webfonts, Typekit, Font Squirrel, etc.), although even that was more than enough for most purposes.