Skip to content

Commit c4a8d52

Browse files
committed
Add default Redox font directory (/ui/fonts)
1 parent e43cc03 commit c4a8d52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

redoxer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ redoxer exec \
2525
--gui \
2626
--folder . \
2727
/bin/sh -c \
28-
"ln -s /ui/fonts /usr/share/fonts && ${cmd}"
28+
"${cmd}"

src/font/system/std.rs

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ impl FontSystem {
4646
#[cfg(not(target_arch = "wasm32"))]
4747
let now = std::time::Instant::now();
4848

49+
#[cfg(target_os = "redox")]
50+
db.load_fonts_dir("/ui/fonts");
51+
4952
db.load_system_fonts();
5053

5154
for source in fonts {

0 commit comments

Comments
 (0)