diff --git a/src/font/system/std.rs b/src/font/system/std.rs index a85af5d..e6ed61b 100644 --- a/src/font/system/std.rs +++ b/src/font/system/std.rs @@ -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();