Add FontSystem::into_locale_and_db for std system
This commit is contained in:
parent
92b3758909
commit
58d292a6f1
1 changed files with 5 additions and 0 deletions
|
|
@ -85,6 +85,11 @@ impl FontSystem {
|
||||||
self.0.borrow_db()
|
self.0.borrow_db()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn into_locale_and_db(self) -> (String, fontdb::Database) {
|
||||||
|
let heads = self.0.into_heads();
|
||||||
|
(heads.locale, heads.db)
|
||||||
|
}
|
||||||
|
|
||||||
// Clippy false positive
|
// Clippy false positive
|
||||||
#[allow(clippy::needless_lifetimes)]
|
#[allow(clippy::needless_lifetimes)]
|
||||||
pub fn get_font<'a>(&'a self, id: fontdb::ID) -> Option<Arc<Font<'a>>> {
|
pub fn get_font<'a>(&'a self, id: fontdb::ID) -> Option<Arc<Font<'a>>> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue