chriseppstein/compass

View on GitHub
compass-style.org/content/reference/compass/helpers/font-files.haml

Summary

Maintainability
Test Coverage
---
title: Compass Font Files Helper
crumb: Font Files
framework: compass
meta_description: Helper function for listing fonts.
layout: core
classnames:
  - reference
  - core
  - helpers
documented_functions:
  - "font-files"
---
%h1 Compass Font Files Helper

#font-files.helper
  %h3
    %a(href="#font-files")
      font-files([<span class="arg">$font</span>]*)
  .details
    %p
      The <code>font-files</code> function takes a list of arguments containing the path to each font files relative to your project's font directory.
    %p
      This helper is used with the <a href="/reference/compass/css3/font_face/#mixin-font-face"><code>font-face</code> mixin</a>
      and is what makes it possible to pass any number of font files.
    %p
      <a href="http://www.w3.org/TR/css3-fonts/#font-reference-the-src-descriptor">W3C Reference</a>
  .examples
    %h4 Examples
    %ul
      %li
        %a(href="/examples/compass/css3/font-face/") Font-face Example