Skip to content

Conversation

@waywardmonkeys
Copy link
Contributor

  • Remove Source variants and From<&str> for FontFeatures / FontVariations; Parley no longer parses CSS-like OpenType strings during resolution.
  • Add a unit test demonstrating text_primitives::{FontFeature, FontVariation}::parse_css_list and passing the typed lists into Parley.
  • Replace the now-single-variant enums with newtype wrappers around Cow<[FontFeature]> / Cow<[FontVariation]> for simpler, slice-like ergonomics.
  • Add StyleProperty conversions from &[FontFeature], &[FontVariation], and &[T; N]; simplify resolution helpers to operate on slices and update tests.

* Remove `Source` variants and `From<&str>` for `FontFeatures` / `FontVariations`; Parley no longer parses CSS-like OpenType strings during resolution.
* Add a unit test demonstrating `text_primitives::{FontFeature, FontVariation}::parse_css_list` and passing the typed lists into Parley.
* Replace the now-single-variant enums with newtype wrappers around `Cow<[FontFeature]>` / `Cow<[FontVariation]>` for simpler, slice-like ergonomics.
* Add `StyleProperty` conversions from `&[FontFeature]`, `&[FontVariation]`, and `&[T; N]`; simplify resolution helpers to operate on slices and update tests.
@waywardmonkeys waywardmonkeys requested review from dfrg and taj-p January 10, 2026 09:20
@dfrg
Copy link
Collaborator

dfrg commented Jan 13, 2026

To me, this breaks the nice symmetry with FontFamily for list like properties. I think we should either drop the font family type or move these to text_primitives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants