Add FontSystem::new_with_locale_and_db for std system
This commit is contained in:
parent
cd15418315
commit
5533af1a53
1 changed files with 5 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ impl FontSystem {
|
|||
);
|
||||
}
|
||||
|
||||
Self::new_with_locale_and_db(&locale, db)
|
||||
}
|
||||
|
||||
/// Create a new [`FontSystem`], manually specifying the current locale and font database.
|
||||
pub fn new_with_locale_and_db(locale: &str, mut db: fontdb::Database) -> Self {
|
||||
{
|
||||
let now = std::time::Instant::now();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue