From 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 8 Mar 2023 10:43:03 +0100 Subject: Require font to be a named argument --- library/src/shared/ext.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'library/src/shared') 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(), ), ); -- cgit v1.2.3