From 8b25b2705afe9dbdf477b7eb49e11d999144f72e Mon Sep 17 00:00:00 2001 From: "zhuoxian.dzx" Date: Fri, 6 Dec 2024 14:44:59 +0800 Subject: [PATCH] fix: use load_full in arc_swap --- package.json | 2 +- src/font.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5c1b0b3..27d6fb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fontkit-rs", - "version": "0.0.14", + "version": "0.0.15-beta.1", "description": "Toolkit used to load, match, measure, and render texts", "main": "index.js", "directories": { diff --git a/src/font.rs b/src/font.rs index e8c9f8a..d6da885 100644 --- a/src/font.rs +++ b/src/font.rs @@ -499,7 +499,7 @@ impl Font { pub fn face(&self, key: &FontKey) -> Result { self.load()?; - let buffer = self.buffer.load().clone(); + let buffer = self.buffer.load_full(); let filters = Filter::from_key(key); let mut queue = self.variants.iter().collect::>(); for filter in filters {