Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large fonts does not render on 32bit arm platform #7221

Open
vlad-cool opened this issue Dec 25, 2024 · 0 comments
Open

Large fonts does not render on 32bit arm platform #7221

vlad-cool opened this issue Dec 25, 2024 · 0 comments
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@vlad-cool
Copy link

Bug Description

I am making rust slint program for single board computer banana pi m2 zero. When running it on my main pc it works fine, however when I cross compile it for banana pi and then run it, texts with large fonts (font_size > 361px) do not render. Smaller texts works fine

Reproducible Code (if applicable)

main.slint:

import { LineEdit, Button, ComboBox, GridBox } from "std-widgets.slint";

export global Palette {
    out property <brush> background: #00f0f0;
    out property <brush> score_l:    #ff0000;
    out property <brush> score_r:    #00ff00;
    out property <brush> period:     #0000ff;
}

export component Virtuoso inherits Window {
    width: 1920px;
    height: 480px;
    background: Palette.background;

    Text {
        x: 0px;
        y: 48px;
        width: 240px;
        height: 432px;
        font_size: 500px;
        text: "0";

        horizontal-alignment: center;
        vertical-alignment: center;
        color: Palette.score_l;
    }
}
/////////////////////////
run.sh: // runs with startx
export SLINT_BACKEND=Qt
export SLINT_SCALE_FACTOR=1

xrandr --output HDMI-1 --rotate left
/home/pi/Virtuoso/app/Virtuoso-l
/////////////////////////
main.rs:
mod layouts;

use layouts::*;

pub fn main() {
    let app = Virtuoso::new().unwrap();

    app.run().unwrap();
}

Environment Details

  • Slint Version: 1.9.1
  • Platform/OS: Linux, X11 / wayland, armv7
  • Programming Language: rust
  • Backend/Renderer: ? (it prints could not load qt, fallback to default)

Product Impact

No response

@vlad-cool vlad-cool added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

1 participant