Table of Contents
GoogleFonts Plugin
Compatible with DokuWiki
Adora Belle, Ponder Stibbons, Hrun
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to fontface
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
Search and install the plugin using the Extension Manager. 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 serifssans-serif
– a font without serifscursive
– a font that has joined strokes that make it look at least somewhat like handwritingfantasy
– 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.
- Merge pull request #5 from pinchies/fix-warnings (2020-08-29 06:28)
- Fix for PHP Warning #2 (2020-04-15 07:37)
- Fix for PHP Warnings "undefined constant" (2020-04-15 07:32)
- Merge pull request #2 from sebastianblum/patch-1 (2014-02-10 03:33)
- removed http:// to work also with https (2014-01-28 09:10)
Localization
Can you help with translations? There is only one file to translate:
- lang/en/setting.php is for the explaining options in the configuration admin.
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.