Download the PHP package gorriecoe/silverstripe-webfonts without Composer
On this page you can find all versions of the php package gorriecoe/silverstripe-webfonts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gorriecoe/silverstripe-webfonts
More information about gorriecoe/silverstripe-webfonts
Files in gorriecoe/silverstripe-webfonts
Package silverstripe-webfonts
Short Description Provide webfont integration for SilverStripe CMS.
License BSD-3-Clause
Homepage http://github.com/gorriecoe/silverstripe-webfonts
Informations about the package silverstripe-webfonts
Webfonts Module
Provide webfonts integration for SilverStripe CMS allowing fonts inside HTMLEditorField and frontend.
Requirements
- silverstripe/framework ^4.0
Installation
Composer is the recommended way of installing SilverStripe modules.
Documentation
TypeKit
Define the TypeKitID in config.yaml
One of the following can be used in page template:
$TypeKitScript
: Returns javascript embed code.$TypeKitStyle
: Returns style link code.$TypeKitID
: Returns the Typekit kit ID.$WebFontLoader
: Returns web font loader embed code.
Example
Google Fonts
Define the GoogleFonts in config.yaml
One of the following can be used in page template:
$GoogleFonts
: Returns style link code.$WebFontLoader
: Returns web font loader embed code.
Example
Fonts.com
Define the FontsComID in config.yaml
One of the following can be used in page template:
$FontsCom
: Returns javascript link code.$FontsComID
: Returns the Font.com project ID.$WebFontLoader
: Returns web font loader embed code.
Example
Multiple font providers
Define the options as listed above in config.yaml
$WebFontLoader
returns web font loader embed code is the recommended variable used in page template for handling multiple font providers.
Example
Custom Fonts
Define the CustomFonts in config.yaml
$WebFontLoader
can be used in page template to return web font loader embed code.