[wp-trac] [WordPress Trac] #43898: Google Font Builder (code written)
WordPress Trac
noreply at wordpress.org
Sat May 12 08:23:00 UTC 2018
#43898: Google Font Builder (code written)
-------------------------------------+------------------------------
Reporter: alicewondermiscreations | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------------+------------------------------
Comment (by alicewondermiscreations):
Note:
The current version of the class I am personally running to implement this
is at
https://github.com/AliceWonderMiscreations/AWonderPHP/blob/master/AWMFontBuilder/AWMFontBuilder.php
It adds a method to destruct an existing font family string, and also adds
dns prefetch of fonts.gstatic.com when fonts.googleapis.com is used -
which is important because browsers don't start fetching webfonts until
they know they need them to render a page, and it's a small performance
boost if the dns part is already done.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43898#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list