fix: no redundant load
This commit is contained in:
parent
658025314c
commit
1f52b5211c
1 changed files with 4 additions and 2 deletions
|
|
@ -220,8 +220,10 @@ impl FontSystem {
|
|||
.filter(|id| {
|
||||
let contains = self.font_cache.contains_key(id);
|
||||
#[cfg(feature = "std")]
|
||||
unsafe {
|
||||
self.db.make_shared_face_data(*id);
|
||||
if !contains {
|
||||
unsafe {
|
||||
self.db.make_shared_face_data(*id);
|
||||
}
|
||||
}
|
||||
!contains
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue