variable-fonts | thorough introduction to the latest font technology | Frontend Framework library
kandi X-RAY | variable-fonts Summary
kandi X-RAY | variable-fonts Summary
This is a project to create a thorough introduction to the latest font technology, variable fonts: their benefits, use cases, and techniques to adopt them in your own projects. This project was initiated with generous funding from Google, as part of the Google Fonts update in 2020 to support variable fonts. It is not an official Google product, and Google provides no support for it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of variable-fonts
variable-fonts Key Features
variable-fonts Examples and Code Snippets
Community Discussions
Trending Discussions on variable-fonts
QUESTION
My goal is to enable the optical sizing axis of the Piazzolla variable font, served by Google Fonts. The 3 axes for Piazzolla are ital
, wght
, and opsz
. If you are unfamiliar with optical sizing, there's a toggle on the Piazzolla specimen site that turns it off and on.
Right now when you browse variable fonts on Google Fonts, many features and axes are hidden. When you select a font to grab the import code, it doesn't include some features. Some axes are missing. You have to read the Google css2 API documentation and the available axes and just try to figure it out yourself.
There's a CSS Tricks article all about it, but for a different font, Recursive. I tried using some of the examples, but either the Piazzolla font wouldn't load, or italics wouldn't load, or all of the weights wouldn't load.
Here's a codepen for you all to play with: https://codepen.io/drw158/pen/BaZogRx
Here's an example of an import url (without the opsz
axis):
ANSWER
Answered 2021-Aug-30 at 21:49(I'm the lead ux programs and operations manager for Google Fonts, but I'm answering in my personal capacity; this isn't an official company statement)
It works for me. Here's a fork of your pen that shows optical size set manually and automatically on roman and italic:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install variable-fonts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page