cosmic-text/examples
Wren [Undefined] a03faa654d
Variable font support (#400)
* Variable font support

Here's a pretty naïve solution for variable fonts.

The iterator doesn't use the match keys' weight, but instead tries to
get the requested ideal weight, if the font is variable, otherwise it is
ignored and the actual (non-variable) weight is used. This is because I
didn't implement finding variable weight support for match keys; doing
so would be impossible without parsing TTF files when matching and I
didn't want to add that potentially expensive infrastructure if not
entirely necessary.

This is a breaking change, and I'm open for ideas on how to fix that
if it's an issue.

* cargo fmt

* Add variable font example to rich-text example
2025-07-07 08:50:40 -06:00
..
editor chore: updating newfound lints 2025-01-22 17:00:01 -07:00
editor-test Allow for undefined buffer width and/or height, fixes #70 2024-06-12 09:14:56 -06:00
multiview fix for test.sh 2025-03-31 17:03:51 +11:00
rich-text Variable font support (#400) 2025-07-07 08:50:40 -06:00
terminal fix for test.sh 2025-03-31 17:03:51 +11:00