Community Documentation

@font-your-face

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:

  1. Place the entirety of this directory in sites/all/modules/fontyourface
  2. Navigate to admin/modules. Enable @font-your-face and one or more of the submodules (font providers) in the group.
  3. 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:

  1. Go to admin/config/user-interface/fontyourface
  2. For each option, click the "Import" buttons to bring in applicable fonts.

spacer

Using @font-your-face:

  1. Navigate to/admin/appearance/fontyourface
  2. Click the "Browse fonts to enable." link.
  3. Select a font and click on the name.
  4. Enter a CSS selector for the content you want to use the font (or leave it as "body" to use it everywhere)
  5. Click "Add font"

spacer

Tips:

  1. 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.
  2. 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.

  • API documentation
  • Drupal 6.x differences for @font-your-face
  • Font provider documentation
‹ Modules for theming up API documentation ›
Login or register to post comments

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

Page status

Incomplete

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Level
Beginner
Audience
Programmers, Site administrators
Keywords
installation instructions

Theming Guide

  • About theming
  • Theming Drupal 6 and 7
  • Theming Drupal 5
  • Tools, best practices and conventions
    • Creating accessible themes
    • Safe theme development
    • Theme coding conventions
    • Theming the Drupal maintenance page
    • Adding your theme to Drupal.org
    • Cross-browser testing
    • Modules for theming
      • @font-your-face
        • API documentation
        • Drupal 6.x differences for @font-your-face
        • Font provider documentation
      • CSS Live
      • Color: Allows the user to change the color scheme of certain themes
      • Conditional Stylesheets
      • Customizing the display of specific nodes using the Custom Node Template module
      • Devel and Theme Developer modules
      • Formatted Title
      • Livethemer
      • NoIE6 module
      • Sections: assign themes to sections of your site
      • Signwriter: Use TrueType fonts to replace text in headings, blocks, menus and filtered text
      • Skinr
      • Theme editor: store, configure, create
      • Typeface Documentation
      • Scaffold CSS framework
    • Recommended target browsers
    • Creating a screenshot for the appearance page (7.x)
    • Creating a screenshot for the administration page
    • Making your theme semantically correct
    • Doctype, XML, and XHTML
  • Updating a theme to a new version
  • More theming resources and guides
  • Theme HowTos
  • Theme snippets
  • Core themes
  • Contributed themes
  • Missing topics
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.