mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-13 13:52:34 +00:00
Format (#2092)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34c44e6063
commit
a375ac0689
1 file changed
+2
-1
@@ -746,7 +746,8 @@ impl FontDb {
|
||||
Ok(FileRef::Font(_)) => 1,
|
||||
Err(_) => 0,
|
||||
};
|
||||
(0..count).filter_map(|i| Face::from_bytes(FontBytes::Shared(shared.clone()), i, None, None))
|
||||
(0..count)
|
||||
.filter_map(|i| Face::from_bytes(FontBytes::Shared(shared.clone()), i, None, None))
|
||||
.map(|f| if loaded { self.add_loaded(f) } else { self.add(f) })
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user