We (twobox.com & delahaye.de) have just released our new extension "Webfontloader".
The Webfontloader enables you to use fonts provided by various suppliers very easy with Contao:
- Google Webfonts[/*:m:rm39qsab]
- Fontsquirrel @Fontface Kits[/*:m:rm39qsab]
- Typekit[/*:m:rm39qsab]
- Monotype (fonts.com)[/*:m:rm39qsab]
- CSS files with @font-face settings (locale and external)[/*:m:rm39qsab]
- Font files (.eot, .woff, .ttf, .svg, locale and external)[/*:m:rm39qsab]
- Ready-to-use code snippets[/*:m:rm39qsab]
Mostly the fonts can use the Google WebFont Loader, which provides more detailed CSS configurations like while-loading etc.. Other ways of embedding are provided per page layout:
- Google WebFont Loader plus CSS[/*:m:rm39qsab]
- Google WebFont Loader plus CSS in noscript-tag (doesn't validate unfortunately)[/*:m:rm39qsab]
- CSS only[/*:m:rm39qsab]
- Google WebFont Loader only (which makes fonts available with Javascript only)[/*:m:rm39qsab]
The Fontsquirrel @Fontface-Kits are automatically downloaded and transferred into the Contao file manager.
Attention: Please read the licenses of the fonts used, because they differ a lot. Some providers e. g. want the website manager to suppress hotlinking of the font files.
We are working on a documentation. But until it's available you'll be fine to use it if you take a look at the hints at the fields.
By now it's a beta version. Please use it, test it and tell us about the bugs you found. But it's already quite stable now :D
Regards,
Christian & Markus
Bookmarks