test(slint): switch the font test to bundled Inter
Replaces the LINE Seed JP probe with Inter 18pt (Regular/Medium/ SemiBold/Bold static faces, compile-time embedded). Inter is a clean, screen-tuned UI face; with the femtovg #5177/#11335 fixes it is the candidate for the final look. FONT_TEST_INTER toggles back to the KDE system font. cc
This commit is contained in:
7 files changed
+14
-13
No files matched your search
@@ -311,16 +311,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let _enter = tokio_rt.enter();
|
||||
|
||||
let window = AppWindow::new()?;
|
||||
// FONT TEST (slint-mvp): trying the bundled LINE Seed JP face instead
|
||||
// of the desktop font, to compare text rendering against a clean,
|
||||
// unpatched font. Flip `FONT_TEST_LINESEED` to false to restore the
|
||||
// KDE system font (kdeglobals lookup).
|
||||
const FONT_TEST_LINESEED: bool = true;
|
||||
if FONT_TEST_LINESEED {
|
||||
// LINE Seed JP is bundled + registered by the `import` of the .ttf
|
||||
// in app.slint; here we just select it as the default family.
|
||||
log::info!("[qbz-slint] font test: using bundled LINE Seed JP");
|
||||
window.set_system_font("LINE Seed JP".into());
|
||||
// FONT TEST (slint-mvp): render with bundled Inter 18pt. Inter is a
|
||||
// clean, screen-tuned UI face; combined with the femtovg #5177/#11335
|
||||
// text fixes this is the candidate for the final look. Flip
|
||||
// `FONT_TEST_INTER` to false to fall back to the KDE system font.
|
||||
const FONT_TEST_INTER: bool = true;
|
||||
if FONT_TEST_INTER {
|
||||
log::info!("[qbz-slint] font test: using bundled Inter 18pt");
|
||||
window.set_system_font("Inter 18pt".into());
|
||||
} else if let Some(font) = system_font_family() {
|
||||
log::info!("[qbz-slint] using system font: {font}");
|
||||
window.set_system_font(font.into());
|
||||
|
||||
@@ -4,9 +4,12 @@
|
||||
// top-level window. No raw visual constants or domain logic here
|
||||
// (MVP ADR, sections 13 and 21).
|
||||
|
||||
// Bundles + registers LINE Seed JP so it can be selected as the default
|
||||
// font family (font-rendering test on the slint-mvp branch).
|
||||
import "assets/fonts/LINESeedJP-Regular.ttf";
|
||||
// Bundles + registers the Inter 18pt faces (compile-time embed) so the
|
||||
// app can render with Inter — see the FONT_TEST_INTER toggle in main.rs.
|
||||
import "assets/fonts/Inter_18pt-Regular.ttf";
|
||||
import "assets/fonts/Inter_18pt-Medium.ttf";
|
||||
import "assets/fonts/Inter_18pt-SemiBold.ttf";
|
||||
import "assets/fonts/Inter_18pt-Bold.ttf";
|
||||
|
||||
import { Theme } from "foundation/semantic-colors.slint";
|
||||
import { SplashScreen } from "splash/SplashScreen.slint";
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user