slint/examples/uefi-demo
Simon Hausmann 6b8214c3f9 Add support for italic and bold text in the software renderer's bitmap font path
In the screenshot tests this works by setting SLINT_DEFAULT_FONT to
pointer to a directory, instead of a file. We then load all fonts in
that directory and consider their families the default unless a family
is specified. This way for "Noto Sans" a regular as well as an italic
version is registered in fontdb and returned in the list of font
fallback ids. embed_glyphs in the compiler then embeds those variants
and we find them at run-time.
2023-05-31 18:47:39 +02:00
..
build.rs examples: Add uefi-demo 2023-04-12 08:23:09 +02:00
Cargo.toml Bump version number to 1.0.3 2023-04-26 14:04:08 +00:00
demo.slint Add support for italic and bold text in the software renderer's bitmap font path 2023-05-31 18:47:39 +02:00
main.rs examples: Add uefi-demo 2023-04-12 08:23:09 +02:00
README.md janitor: Capitalize Slint 2023-04-13 10:52:45 +02:00

Slint UEFI demo

This example demonstrates Slint in a UEFI environment.

Screenshot

To build this example a suitable UEFI rust target must be installed first:

rustup target install x86_64-unknown-uefi

To build, simply pass the --package and --target arguments to cargo:

cargo build --package uefi-demo --target x86_64-unknown-uefi

The produced UEFI binary can then either be tested on real hardware by booting it like any other bootloader or directly with QEMU (the firmware location varies by distro):

qemu-system-x86_64 -bios /usr/share/edk2-ovmf/x64/OVMF.fd -kernel target/x86_64-unknown-uefi/debug/uefi-demo.efi