[wp-trac] [WordPress Trac] #46370: A proposal for creating an API to register and enqueue web fonts
WordPress Trac
noreply at wordpress.org
Mon Sep 13 16:22:09 UTC 2021
#46370: A proposal for creating an API to register and enqueue web fonts
--------------------------------------+-----------------------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: performance, privacy
--------------------------------------+-----------------------------------
Comment (by skorasaurus):
Replying to [comment:30 jb510]:
> This looks great and thanks @garrett-eclipse for pointing to that post
and the WPTT code for downloading Google Fonts to local
https://github.com/WPTT/webfont-loader
>
> My only question about this ticket is will it be usable by commercially
licensed fonts as well? ie. could Adobe Fonts/TypeKit make a plugin that
offered their catalog of fonts and still leveraged this API? I don't off
hand know what their needs would be, maybe just that the output be
filterable enough to tack on a API token/license key where needed.
I currently use Adobe Fonts/Typekit at my workplace; they provide a custom
URL CSS file that you're instructed to load into your site.
A sample CSS File is at
https://gist.github.com/skorasaurus/203092b49e323d23fbd894ca65cf09e2 (some
integers in the file have been modified for security purposes)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46370#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list