Add default Redox font directory (/ui/fonts)
This commit is contained in:
parent
e43cc03354
commit
c4a8d521f6
2 changed files with 4 additions and 1 deletions
|
|
@ -25,4 +25,4 @@ redoxer exec \
|
||||||
--gui \
|
--gui \
|
||||||
--folder . \
|
--folder . \
|
||||||
/bin/sh -c \
|
/bin/sh -c \
|
||||||
"ln -s /ui/fonts /usr/share/fonts && ${cmd}"
|
"${cmd}"
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ impl FontSystem {
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
let now = std::time::Instant::now();
|
let now = std::time::Instant::now();
|
||||||
|
|
||||||
|
#[cfg(target_os = "redox")]
|
||||||
|
db.load_fonts_dir("/ui/fonts");
|
||||||
|
|
||||||
db.load_system_fonts();
|
db.load_system_fonts();
|
||||||
|
|
||||||
for source in fonts {
|
for source in fonts {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue