Skip to content

Commit 8b37318

Browse files
committed
Updating docs
1 parent 4c72ea0 commit 8b37318

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ Alternatively, load fonts from Typekit. Just specify your Kit ID.
3333
});
3434
</script>
3535

36+
You can load fonts served by [TypeFront](http://typefront.com) in the following way:
37+
38+
<script src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
39+
<script>
40+
WebFont.load({
41+
typefront: {
42+
ids: ['xxxxxx', 'xxxxxx'],
43+
families: ['Font1', 'Font2']
44+
}
45+
});
46+
</script>
47+
3648
Learn more about the
3749
[modules][mod].
3850

docs/MODULES.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ ID within Typekit's Kit Editor interface.
3030

3131
Learn more about [Typekit][tk].
3232

33+
## TypeFront
34+
35+
When using TypeFront, you specify a set of font IDs and a set of corresponding font families.
36+
37+
You can find your font ID and family name by clicking on 'Font information' within the TypeFront interface.
38+
39+
WebFont.load({
40+
typefront: {
41+
ids: ['xxxxxx', 'xxxxxx'],
42+
families: ['Font1', 'Font2']
43+
}
44+
});
45+
46+
Learn more about [TypeFront](http://typefront.com).
3347

3448
## Custom
3549

@@ -46,4 +60,4 @@ provides.
4660

4761

4862
[gfontapi]: https://code.google.com/apis/webfonts/docs/getting_started.html
49-
[tk]: http://typekit.com/
63+
[tk]: http://typekit.com/

0 commit comments

Comments
 (0)