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

Android: default-font-family not work #5143

Open
Heng30 opened this issue Apr 28, 2024 · 0 comments
Open

Android: default-font-family not work #5143

Heng30 opened this issue Apr 28, 2024 · 0 comments
Labels
a:platform-android Android platform integration (mO,bS)

Comments

@Heng30
Copy link

Heng30 commented Apr 28, 2024

  • platform: Android
  • Android target sdk version: 32
  • language: Rust
  • slint version: v1.5.1
  • style: material
  • code snippets. It works on Linux, but not works on Android
import "./fonts/SourceHanSerifCN.ttf";

export global Theme  {
    in-out property<length> default-font-size: 20px;
    in-out property<string> default-font-family: "SourceHanSerifCN";
}

export component AppWindow inherits Window {
    default-font-size: Theme.default-font-size;
    default-font-family: Theme.default-font-family;
}
@hunger hunger added the a:platform-android Android platform integration (mO,bS) label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:platform-android Android platform integration (mO,bS)
Projects
None yet
Development

No branches or pull requests

2 participants