Last updated October 13, 2012. Created by sreynen on September 22, 2011.
Edited by Drave Robber, djmolny, choster, sammyframson. Log in to edit this page.
@font-your-face (project page) provides an administrative interface for browsing and applying web fonts from a variety of sources. Web fonts are supported in all widely-used web browsers, even IE 6. Several different organizations host and sell or offer free web fonts, and @font-your-face supports all providers as well as fonts hosted locally in Drupal.
Installing @font-your-face:
- Place the entirety of this directory in sites/all/modules/fontyourface
- Navigate to admin/modules. Enable @font-your-face and one or more of the submodules (font providers) in the group.
- To make @font-your-face configurable by anyone other than UID 1 (adminsitrator), be sure to grant the "administer @font-your-face" permission to the appropriate roles.
Import your fonts:
- Go to admin/config/user-interface/fontyourface
- For each option, click the "Import" buttons to bring in applicable fonts.
Using @font-your-face:
- Navigate to/admin/appearance/fontyourface
- Click the "Browse fonts to enable." link.
- Select a font and click on the name.
- Enter a CSS selector for the content you want to use the font (or leave it as "body" to use it everywhere)
- Click "Add font"
Tips:
- Note that Internet Explorer has a limit of 32 CSS files, so using @font-your-face on CSS-heavy sites may require turning on CSS aggregation under administer >> site configuration >> performance.
- When applying your font to tags, note that your font may overridden by child tags font, especially when you assign font to the body tag. In CSS, the most specific selector takes precedence.
See drupal.org/project/fontyourface#support for support options.
Login or register to post comments
Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.