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

Closed
vlad-cool opened this issue Dec 25, 2024 · 1 comment
Closed

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

vlad-cool opened this issue Dec 25, 2024 · 1 comment
Labels
a:text Text rendering, fonts, Text input (mS,bF) bug Something isn't working duplicate This issue or pull request already exists

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
@ogoffart
Copy link
Member

ogoffart commented Jan 2, 2025

Thanks for filing the issue.

This happens because the Text element is too small and therefore the entire text is clipped.

This is a duplicate of #2029 and I'm closing it as such, but thanks anyway for reporting.

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
@ogoffart ogoffart added duplicate This issue or pull request already exists a:text Text rendering, fonts, Text input (mS,bF) and removed need triaging Issue that the owner of the area still need to triage labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:text Text rendering, fonts, Text input (mS,bF) bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants