flutter / flutter/flutter

[BUG] SKWasm Text rendering (intermittent random italic style)

Open
#178,053 10 comments 2 reactions 0 assignees View on GitHub
a: typography e: wasm e: web_skwasm engine P2 platform-web team-web triaged-web
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Reproducible example here:
https://github.com/AlexDochioiu/flutter-wasm-chrome-extension-bug/tree/font-issue-reproduced

### How to reproduce as Chrome extension
1. Follow readme docs to install and run
2. On the `inspect` chrome panel, do repeatedly `CMD + R` which would reload the extension until you see the issue

### How to reproduce as regular web build
Note: I find it to happen more often as Chrome extension (maybe because of the single-threaded skwasm). Still, it can easily be reproduced without running it as an extension.

1. Run
```
flutter run -d chrome --wasm
```
2. Refresh the page until you see it

Note: Any text on the page may become randomly italic (the one on the button/title/etc)

### Expected results

Text should maintain its style and not become randomly italic (intermittent)

### Actual results

Text becomes italic

### Code sample

Code sample

See repo mentioned earlier.

### Screenshots or Video

Screenshots / Video demonstration

https://github.com/user-attachments/assets/cad3b47e-d3f0-4428-82dc-fc430048b935

### Logs

Logs

```console
[Paste your logs here]
```

### Flutter Doctor output

Doctor output

```console
➜ flutter doctor -v
[✓] Flutter (Channel beta, 3.38.0-0.2.pre, on macOS 26.0.1 25A362 darwin-arm64, locale en-US) [3.6s]
• Flutter version 3.38.0-0.2.pre on channel beta at /Users/alexandrudochioiu/.asdf/installs/flutter/3.32.1-stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f16b4ff892 (8 days ago), 2025-10-28 14:32:10 -0500
• Engine revision d7ec7e8064
• Dart version 3.10.0 (build 3.10.0-290.1.beta)
• DevTools version 2.51.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
omit-legacy-version-file, enable-lldb-debugging
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.