web-stories-wp icon indicating copy to clipboard operation
web-stories-wp copied to clipboard

Variable Fonts

Open davelab6 opened this issue 4 years ago • 3 comments

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

davelab6 avatar Apr 18 '20 00:04 davelab6

Currently blocked by https://github.com/ampproject/amphtml/issues/27881 I think

swissspidy avatar Apr 20 '20 14:04 swissspidy

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.

swissspidy avatar Jul 20 '22 17:07 swissspidy

Looks like we'd have to scrape https://fonts.google.com/variablefonts for now

swissspidy avatar Jul 21 '22 08:07 swissspidy