\WebfontsUtility
Helper class for working with web fonts, including web fonts, etc.
Private statics defined here should be set from config.yml
- Author: Anselm Christophersen <ac@title.dk>
- Copyright: Copyright (c) 2015, Title Web Solutions
Synopsis
class WebfontsUtility
extends Object
{
- // members
- private static array $google_fonts = ;
- private static array $local_fonts = ;
- private static string $local_fonts_location = 'fonts';
- // methods
- public static void Requirements()
- public static void GoogleFontRequirements_string()
- public static void GoogleFontRequirements()
- public static void google_font_collection_link()
- public static void LocalFontRequirements()
- public static void all_fonts()
- public static void enabled_fonts()
- private static void labeled_fonts()
- public static void settings_cache_key()
- public static void set_html_editor_config()
- public static void write_settings_cache()
Hierarchy
Extends
- Object
Members
private
- $google_fonts
- $local_fonts
- $local_fonts_location
Methods
private
public
- GoogleFontRequirements() — Google Font Requirements
- GoogleFontRequirements_string() — Creating of the font requirements string based on configured fonts
- LocalFontRequirements() — Local Font Requirements
- Requirements() — Font requirements
- all_fonts() — A list of all available fonts
- enabled_fonts() — A list of all enabled fonts If no enabled settings have been set, this returns all fonts
- google_font_collection_link()
- set_html_editor_config() — Setting font and font size dropdown Font dropdown is populated with configured fonts This should be called from _config.php Unfortunately this means that it's called on all page requests - TODO: this could be alterated with a proper if statement
- settings_cache_key() — Settings cache key For now only used for enabled fonts, but could be used for other things
- write_settings_cache()