adrielcafe / voyager

🛸 A pragmatic navigation library for Jetpack Compose
https://voyager.adriel.cafe
MIT License
2.51k stars 126 forks source link

[WASM] [Font] tofu are displayed instead of the actual font #456

Open Shusshu opened 2 months ago

Shusshu commented 2 months ago

Hi,

I raised an issue on compose-multiplatform https://youtrack.jetbrains.com/issue/CMP-5094/WASM-Custom-Font-Text-displays-tofu-together-with-the-Voyager-lib


Bug Description When opening the wasm website the text font displays tofu's instead of the actual font

It only occurs in combination with the Voyager navigation library

Affected Platforms Web (K/Wasm) - Canvas based API

Versions

Kotlin version: 2.0.0 & 2.0.20-beta1 & 2.0.20-beta2-48 Compose Multiplatform version: 1.6.11 & 1.7.0-xxx

Reproduction Steps Steps and/or the code snippet to reproduce the behavior:

  1. Clone project https://github.com/Shusshu/wasm-fonts-tofu-issue

  2. Run this code snippet:

    ./gradlew wasmJsBrowserRun

  3. See the tofu issue

Expected Behavior Text is shown directly in the right font

Shusshu commented 2 months ago

@adrielcafe @DevSrSouza wdty https://youtrack.jetbrains.com/issue/CMP-5094/WASM-Custom-Font-Text-displays-tofu-together-with-the-Voyager-lib#focus=Comments-27-10112714.0-0