* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***** Based on Google Web Font service, that uses OpenSource Licenses . */ $RecipeInfo['GoogleFonts']['Version'] = '20180319'; # font names are case sensitive # check webfont names with quick use # preferably numeric styles # format is "Font+Name:numeric-style:subset" # only one font name value per key # only one font style per key # only one subset value per key SDVA($GoogleWebFonts, array( 'AdventProNormalLatin' => 'Advent+Pro:400:latin', 'PlasterNormalLatin' => 'Plaster:400:latin', 'EmblemaOneNormalLatin' => 'Emblema+One:400:latin', 'HennyPennyNormalLatin' => 'Henny+Penny:400:latin', 'ButchermanNormalLatin' => 'Butcherman:400:latin', 'CreepsterNormalLatin' => 'Creepster:400:latin', 'DrSugiyamaNormalLatin' => 'Dr+Sugiyama:400:latin', 'MonotonNormalLatin' => 'Monoton:400:latin', 'EwertNormalLatin' => 'Ewert:400:latin', 'EaterNormalLatin' => 'Eater:400:latin', 'NosiferNormalLatin' => 'Nosifer:400:latin' )); SDV($GoogleWebFontsUrl, "http://fonts.googleapis.com/css?"); // with this var you can set fonts to be always loaded SDVA($LoadWebFonts, (array)"dummy"); Markup('reservewebfonts','directives', "/\\(:loadfont\\s+?(.*):\\)/e", "ReserveWebFonts('$pagename',PSS('$1'))"); // will be evaled inside a function $MarkupFrameBase['posteval']['loadwebfonts'] = "\$loadwebfonts = LoadWebFonts(\$pagename);"; function ReserveWebFonts($p,$f){ global $GoogleWebFonts, $LoadWebFonts; if($p == '') return; $f = trim($f); if(strtolower($f) == 'help' ){ $h = FmtPageName("$[Webfonts]:",$p); $h .= '