web-stories-wp
web-stories-wp copied to clipboard
Variable Fonts
Feature Description
Support Variable Fonts available from the css2 Google Fonts API, to take advantage of a wider variety of weights and styles.
VariableFonts.io and variablefonts.typenetwork.com explain some use cases and implementation patterns :)
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
QA Instructions
Currently blocked by https://github.com/ampproject/amphtml/issues/27881 I think
Also useful docs: https://fonts.google.com/knowledge/using_type/loading_variable_fonts_on_the_web
Marking variable fonts as such & loading the right stylesheets should be rather trivial, it's just a question of how to expose variable fonts functionality in the editor.
@davelab6 Does the webfonts/v1/webfonts
API endpoint declare whether a font is a variable font or not? At first glance it doesn't look like it.
Looks like we'd have to scrape https://fonts.google.com/variablefonts for now