From 5533af1a53ee69f7f1d85233c01708afca4b969a Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Tue, 27 Dec 2022 15:33:39 -0800 Subject: [PATCH] Add FontSystem::new_with_locale_and_db for std system --- src/font/system/std.rs | 5 +++++ 1 file changed, 5 insertions(+) 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();