KyleAMathews / typography.js

A powerful toolkit for building websites with beautiful design
http://kyleamathews.github.io/typography.js/
MIT License
3.84k stars 182 forks source link

Add variable font support #194

Open vpicone opened 5 years ago

vpicone commented 5 years ago

This request is to add support for font-variation-settings as an option. It may, however work better as a plugin. If implemented as a plugin, font properties such as weight and optical size could be adjusted based on the rhythm unit.

KyleAMathews commented 5 years ago

Curious about this. Would you normally want to auto change variable font weights? My impression was that they're more a way to bundle more weights in one font in a cheaper (byte weight) way.

vpicone commented 5 years ago

That’s definitely the more common use case. I think I was more trying to justify why it could warrant a plug-in in addition to/opposed to just adding it to the core options.

Either way, I think it’d be a great core option and help a lot with using a variable font with variations as part of a type system.