DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:googlefonts

GoogleFonts Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" yes

plugin A DokuWiki Plugin to embed google web font for headlines or other tags, css classes or css id's.

Last updated on
2014-02-10
Provides
Action
Repository
Source

Similar to fontface

Tagged with fonts, google, style, typography

By Jaella

Description

This plugin allows the inclusion of multiple Google Web Fonts into a wiki site. The plugin allows for each chosen font to be assigned to one or multiple html tags.

Credit needs to go to the author of the fontface plugin as it has heavily inspired the creation of GoogleFonts.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Configuration and Settings

This plugin is configured and managed from the Administration Configuration page.

Options

fontName#

This is where the name of the Google Web Font is defined. This can be either just the name of the font, or a variant. For example:

  • Open Sans
  • Open+Sans
  • Open Sans:400italic,400
  • Open+Sans:400italic,700italic,400,700

headings#

Choose which html tag, css class or css id should have the associated fontName applied to it. A comma (,) is used as a seperator. For example:

  • h1
  • h2
  • li,p

genFamily#

Choose the fonts generic font family. If you are unsure what your chosen font's family is, check out the 'Quick-Use' for the font and the 4th point will have the information. The options are:

  • serif – a font with serifs
  • sans-serif – a font without serifs
  • cursive – a font that has joined strokes that make it look at least somewhat like handwriting
  • fantasy – a decorative font (but focused on characters rather than on icons or pictures)
  • monospace – a font in which every character is the same width

addStyle#

Here you have the option to turn the style on or off without having to remove its details from the config.

Additional Fonts

The setup currently only give the option for three fonts, but if more are needed, they can be added by uncommenting and/or editting the conf\default.php, conf\metadata.php and lang\en\settings.php files in lib\plugin\googlefonts\.

Development

Change Log

A complete changelog is available at the Github repository.

Localization

Can you help with translations? There is only one file to translate:

Post any updated language files in the bugtracker. Please make sure to have a look at the available translations first.

Discussion

Before reporting any issues (bugs or requests), please first take a look at the FAQ on plugin problems.

You can report any issues either on the Issue Tracker or on the separate discussion page.

plugin/googlefonts.txt · Last modified: 2015-12-08 06:33 by Aleksandr