2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

image

gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  • Tuesday, May 22, 2018
  • by gorriecoe
  • Repository
  • 1 Watchers
  • 3 Stars
  • 158 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 86 % Grown

The README.md

Webfonts Module

ko-fi, (*1)

Provide webfonts integration for SilverStripe CMS allowing fonts inside HTMLEditorField and frontend., (*2)

Requirements

  • silverstripe/framework ^4.0

Installation

Composer is the recommended way of installing SilverStripe modules., (*3)

$ composer require gorriecoe/silverstripe-webfonts

Documentation

TypeKit

Define the TypeKitID in config.yaml, (*4)

gorriecoe\Webfonts\View\Webfonts:
  TypeKitID: '######'

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., (*5)

Example

<head>
    <title>Example.com</title>
    {$TypeKitScript}
</head>

Google Fonts

Define the GoogleFonts in config.yaml, (*6)

gorriecoe\Webfonts\View\Webfonts:
  GoogleFonts:
    - 'Droid Sans'
    - 'Droid Serif:bold'

One of the following can be used in page template: - $GoogleFonts: Returns style link code. - $WebFontLoader: Returns web font loader embed code., (*7)

Example

<head>
    <title>Example.com</title>
    {$GoogleFonts}
</head>

Fonts.com

Define the FontsComID in config.yaml, (*8)

gorriecoe\Webfonts\View\Webfonts:
  FontsComID: '######'

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., (*9)

Example

<head>
    <title>Example.com</title>
    {$FontsCom}
</head>

Multiple font providers

Define the options as listed above in config.yaml, (*10)

gorriecoe\Webfonts\View\Webfonts:
  TypeKitID: '######'
  GoogleFonts:
    - 'Droid Sans'
    - 'Droid Serif:bold'

$WebFontLoader returns web font loader embed code is the recommended variable used in page template for handling multiple font providers., (*11)

Example

<head>
    <title>Example.com</title>
    {$WebFontLoader}
</head>

Custom Fonts

Define the CustomFonts in config.yaml, (*12)

gorriecoe\Webfonts\View\Webfonts:
  CustomFonts:
    'MyFont:Bold,Italic': '/fonts.css'
    'FontAwesome': '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'

$WebFontLoader can be used in page template to return web font loader embed code., (*13)

The Versions

22/05 2018

dev-master

9999999-dev http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

14/04 2018

1.0.5

1.0.5.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

20/03 2018

1.0.4

1.0.4.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

26/01 2018

1.0.3

1.0.3.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

26/01 2018

1.0.2

1.0.2.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD 3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

15/12 2017

1.0.1

1.0.1.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD 3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com

15/12 2017

1.0.0

1.0.0.0 http://github.com/gorriecoe/silverstripe-webfonts

Provide webfont integration for SilverStripe CMS.

  Sources   Download

BSD 3-Clause

The Requires

 

by Gorrie Coe

silverstripe webfonts typekit googlefonts fonts.com