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

Memory usage is excessive or leaking of Chinese font #7434

Open
fluolite opened this issue Jan 23, 2025 · 0 comments
Open

Memory usage is excessive or leaking of Chinese font #7434

fluolite opened this issue Jan 23, 2025 · 0 comments
Labels
a:text Text rendering, fonts, Text input (mS,bF) bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@fluolite
Copy link

Bug Description

There is no Chinese font, the memory difference is 170M

Image

slintprimer.zip

Reproducible Code (if applicable)

import "../../res/fonts/Alibaba-PuHuiTi-Regular.ttf";        // "Alibaba PuHuiTi"
export component AppWindow inherits Window {
    width: 480px;
    height: 480px;
    default-font-family: "Alibaba PuHuiTi";
    Rectangle {
        width: parent.width;
        height: parent.height;
        background: #333333;
        Text {
            font-size: 60px;
            color: #ffffff;
            text: "我是中文";
        }
    }
}

Environment Details

  • Slint Version: 1.9.2
  • Platform/OS: linuxkms
  • Programming Language: Rust
  • Backend/Renderer: Sofeware Renderer

Product Impact

No response

@fluolite fluolite added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Jan 23, 2025
@ogoffart ogoffart added the a:text Text rendering, fonts, Text input (mS,bF) label Jan 24, 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 need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

2 participants