Skip to content

Commit

Permalink
fix: use load_full in arc_swap
Browse files Browse the repository at this point in the history
  • Loading branch information
zimond committed Dec 6, 2024
1 parent 10ea022 commit 8b25b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ impl Font {

pub fn face(&self, key: &FontKey) -> Result<StaticFace, Error> {
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::<Vec<_>>();
for filter in filters {
Expand Down

0 comments on commit 8b25b27

Please sign in to comment.