Add default Redox font directory (/ui/fonts)

This commit is contained in:
Jeremy Soller 2023-03-08 21:01:53 -07:00
parent e43cc03354
commit c4a8d521f6
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,9 @@ impl FontSystem {
#[cfg(not(target_arch = "wasm32"))]
let now = std::time::Instant::now();
#[cfg(target_os = "redox")]
db.load_fonts_dir("/ui/fonts");
db.load_system_fonts();
for source in fonts {