diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:43:03 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:44:24 +0100 |
| commit | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch) | |
| tree | 682124c2343db9491c84bddbdca026c676f220c6 /library/src/shared | |
| parent | 25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff) | |
Require font to be a named argument
Diffstat (limited to 'library/src/shared')
| -rw-r--r-- | library/src/shared/ext.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/shared/ext.rs b/library/src/shared/ext.rs index 83e62ac4..f797e135 100644 --- a/library/src/shared/ext.rs +++ b/library/src/shared/ext.rs @@ -74,10 +74,10 @@ pub trait StyleMapExt { impl StyleMapExt for StyleMap { fn set_family(&mut self, preferred: crate::text::FontFamily, existing: StyleChain) { self.set( - crate::text::TextNode::FAMILY, - crate::text::FallbackList( + crate::text::TextNode::FONT, + crate::text::FontList( std::iter::once(preferred) - .chain(existing.get(crate::text::TextNode::FAMILY).0.iter().cloned()) + .chain(existing.get(crate::text::TextNode::FONT).0.iter().cloned()) .collect(), ), ); |
