Remove most usage of ReentrantMutex in font code (#33746)

* Remove unnecessary ReentrantMutex usage for senders.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Remove double lock for freetype face.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-10-10 12:55:19 -04:00 committed by GitHub
parent a591778a25
commit 6b3a316e1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 9 deletions

View file

@ -150,7 +150,6 @@ impl PlatformFontMethods for PlatformFont {
FontStyle::NORMAL
};
let face = self.face.lock();
let os2_table = face.os2_table();
let weight = os2_table
.as_ref()