New Z80 MZ-700 emulator implemented in Rust and Slint

User avatar
tingo
Posts: 42
Joined: Wed Oct 31, 2018 9:10 pm

Re: New Z80 MZ-700 emulator implemented in Rust and Slint

Post by tingo »

Nice! It builds without any hassle under FreeBSD. But it seems slint wants a default font that I have not installed

Code: Select all

warning: use of deprecated constant `assetdownload::_::WARNING`: No component is exported. The last imported component 'AssetsDownloadDialog' will be used. This is deprecated
  --> src/assetdownload.rs:14:5
   |
14 |     import { AssetsDownloadDialog } from "ui/assetsdownloaddialog.slint";
   |     ^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: `z80emu` (bin "z80emu") generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s
     Running `target/debug/z80emu`
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
thread 'main' panicked at /home/tingo/.cargo/git/checkouts/slint-8153123e5dffa129/a16e86b/internal/common/sharedfontdb.rs:165:13:
Unable to determine default font. Failed to locate font for family Noto Sans
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
let me see if I can fix that.
--
Torfinn
User avatar
tingo
Posts: 42
Joined: Wed Oct 31, 2018 9:10 pm

Re: New Z80 MZ-700 emulator implemented in Rust and Slint

Post by tingo »

Hmm, strange the noto sans fonts are already installed

Code: Select all

root@kg-core2:~ # pkg info noto\*
noto-basic-2.0_3
noto-sans-basic-2.013
noto-sans-mono-basic-2.014
noto-sans-symbols-basic-2.003
noto-sans-symbols2-2.008
noto-serif-basic-2.013
this on

Code: Select all

root@kg-core2:~ # freebsd-version -ku
13.2-RELEASE-p11
13.2-RELEASE-p12
and fc-match confirms that it finds fonts

Code: Select all

root@kg-core2:~ # fc-match sans-serif
NotoSans-Regular.ttf: "Noto Sans" "Regular"
root@kg-core2:~ # fc-match sans
NotoSans-Regular.ttf: "Noto Sans" "Regular"
--
Torfinn
User avatar
tingo
Posts: 42
Joined: Wed Oct 31, 2018 9:10 pm

Re: New Z80 MZ-700 emulator implemented in Rust and Slint

Post by tingo »

Ok, I found a workaround

Code: Select all

FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf cargo run
and then the emulator works.
Very nice - I'm impressed!
--
Torfinn
Post Reply