DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:googlefonts:discussion

GoogleFonts Plugin Discussion

Discussion page for the GoogleFonts plugin

Please start new requests with a new heading.

Font subsets

Thank you for your excellent plugin! I wonder if it would be possible to have a configuration setting to allow script subsets. For now, I changed the following line of the action.php file:

$CSSfiles = array(
                '//fonts.googleapis.com/css?family='.trim(implode("|",str_replace(' ', '+', $fontNames)),"|")
        );

to:

$CSSfiles = array(
                '//fonts.googleapis.com/css?family='.trim(implode("|",str_replace(' ', '+', $fontNames)),"|")
                . '&subset=latin,greek,greek-ext'
        );

in order to include both the latin and the greek subset of the font.

plugin/googlefonts/discussion.txt · Last modified: 2015-01-10 17:34 by 89.210.178.121