1 vote

Google WebFont Property Editor

This property editor allow you to set a font for your website, using Google's CSS3 WebFont service.
http://www.google.com/webfonts

This property editor allows you to pick a font-family from the service and it's variations of font weights and styles and apply CSS selectors for each variant.

By outputting a few values from the property editor for fetching the CSS WebFont from Google's server and outputting the CSS needed.

This gives you an easy way to transform and spice up your website easily

How To Use

Use the following Razor snippet to output the values and replace siteFont with the property alias of you

<link href="@CurrentPage.siteFont.CSSUrl" type="text/css" rel="stylesheet" />
<style>
    @CurrentPage.siteFont.CSS
</style>

 

Values

Here are the values that are saved:

@CurrentPage.siteFont.FontFamily
A string of the font family that is saved.

@CurrentPage.siteFont.FontVariants
A comma separated string of font variants selected

@CurrentPage.siteFont.CSSSelectors
A vertical pipe separated string of the css selectors for each selected font variant

@CurrentPage.siteFont.CSS
This value gets generated when the property is saved. Which automatically builds up the CSS from the CSS selectors, variants and font family.

@CurrentPage.siteFont.CSSUrl
This value gets generated when the property is saved. Which automatically builds up the Google WebFont CSS URL.

Releases

1.0.0 - Initial Release
1.0.1 - Fix label on prevalue for setting preview paragraph text & make value boxes readonly

Screenshots

Package owner

Warren Buckley

Warren Buckley

Warren has 4489 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.0.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Warren Buckley
  • Created: 21/04/2012
  • Current version 1.0.1
  • License MIT
  • Downloads: 1878