Skip to content

fix: bundle and fallback to Noto Sans CJK for missing Chinese glyphs - #2182

Merged
wthIC merged 1 commit into
mainfrom
fix/arm64-chinese-font-rendering
Sep 7, 2026
Merged

wthIC merged 1 commit into
mainfrom
fix/arm64-chinese-font-rendering

Conversation

@wthIC

@wthIC wthIC commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Flutter has a known issue on ARM64 Linux platforms (flutter/flutter#90951) where Chinese glyphs fail to render and display as tofu boxes (□□□). Within snap confinement, the application lacks access to necessary CJK glyph tables, causing unrendered characters across the interface.

Ahead of an upstream release for the Lenovo partnership, this provides a workaround in App Center by bundling the fonts and declaring explicit fallbacks.

Changes

Add Noto Sans CJK to font fallbacks — In packages/app_center/lib/store/store_app.dart (inside StoreAppThemeX), added Noto Sans CJK (SC, TC, HK) to fontFamilyFallback.

Stage CJK fonts in the snap — Added fonts-noto-cjk to stage-packages in snapcraft.yaml so the required font files are bundled and accessible inside snap confinement at runtime.

Testing

Manual verification on ARM64 hardware:

  1. Build and install the snap on an ARM64 test machine.
  2. Launch App Center with a Chinese locale (LANG=zh_CN.UTF-8).
  3. Verify that Chinese glyphs render properly across all views without tofu boxes (□□□).

UDENG-11262

Flutter has a known issue on ARM64 Linux platforms (flutter/flutter#90951) where Chinese glyphs fail to render and display as tofu (□□□). Ahead of the upstream release for the Lenovo partnership, this provides a workaround for App Center:

- Add Noto Sans CJK (SC, TC, HK) to fontFamilyFallback
- Stage fonts-noto-cjk in snapcraft.yaml for glyph coverage inside snap confinement

UDENG-11262

Signed-off-by: Murad Eynizada <[email protected]>

@ogres ogres left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@wthIC
wthIC merged commit 09e6ce1 into main Sep 7, 2026
11 checks passed
@wthIC
wthIC deleted the fix/arm64-chinese-font-rendering branch September 7, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants