summaryrefslogtreecommitdiff
path: root/library/src/shared/ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/shared/ext.rs')
-rw-r--r--library/src/shared/ext.rs6
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(),
),
);