Add FontSystem::new_with_locale_and_db for std system

This commit is contained in:
Audrey Dutcher 2022-12-27 15:33:39 -08:00 committed by Jeremy Soller
parent cd15418315
commit 5533af1a53

View file

@ -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();