Update outdated doc

This commit is contained in:
Maxime Thirouin 2012-03-13 21:53:19 +01:00
parent b8321a4db0
commit 788a344278
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
@import compass/css3 @import compass/css3
+font-face("Blooming Grove", font-files("examples/bgrove.ttf", truetype, "examples/bgrove.otf", opentype)) +font-face("Blooming Grove", font-files("examples/bgrove.ttf", "examples/bgrove.otf"))
.example .example
font-family: "Blooming Grove" font-family: "Blooming Grove"

View File

@ -16,13 +16,10 @@ documented_functions:
#font-files.helper #font-files.helper
%h3 %h3
%a(href="#font-files") %a(href="#font-files")
font-files([<span class="arg">$font</span>, <span class="arg">$format</span>]*) font-files([<span class="arg">$font</span>]*)
.details .details
%p %p
The <code>font-files</code> function takes any even number of arguments. 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.
For each pair of arguments, the first is the path to the font file
relative to your project's font directory and the second is the format of
that font.
%p %p
This helper is used with the <a href="/reference/compass/css3/font_face/#mixin-font-face"><code>font-face</code> mixin</a> 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. and is what makes it possible to pass any number of font files.