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
+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
font-family: "Blooming Grove"

View File

@ -16,13 +16,10 @@ documented_functions:
#font-files.helper
%h3
%a(href="#font-files")
font-files([<span class="arg">$font</span>, <span class="arg">$format</span>]*)
font-files([<span class="arg">$font</span>]*)
.details
%p
The <code>font-files</code> function takes any even number of arguments.
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.
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.