Custom fonts render with glitches on certain Windows devices
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
Start by comparing the Phaser-CE JSFiddle with the Phaser 3, PixiJS 3, and vanilla JS examples on an affected Windows device in Chrome. The issue suspects BaseTexture in updateTexture and notes that calling text.updateText() avoids the glitch; investigate how Phaser-CE handles custom font text rendering and compare its behavior with the working examples. Done means identifying and fixing the cause so the text renders without missing fill chunks under the reported conditions.
索引モデルが issue の本文から書いたものです。
説明
Summary
- Issue: Text with custom fonts appear with artifacts/glitches on certain Windows machines.
- Phaser version(s): Phaser-CE v2.20.0
- Live example:
- Phaser-CE: https://jsfiddle.net/Akurn/u3xb4rs2/ (the only one that shows the font glitch)
- Phaser 3: https://jsfiddle.net/Akurn/58wbe6n7/
- PixiJS 3: https://jsfiddle.net/Akurn/13u602wb/
- Vanilla JS: https://jsfiddle.net/Akurn/2evyskft/
- (I need to do a test on PixiJS v2 in case its also reproducible)
- What steps produce the bug:
- View the JSFiddle on affected machines in the Chrome browser
- So far we've replicated on Dell i7 laptops with Intel Xe integrated graphics chips running either Windows 10 or 11
- Text between 10-29 px without a Stroke, seem to be affected more
- What should happen: Text should render cleanly
- What happens instead: Text renders with random chunks missing from the fill
- Screenshot:
Description
Hi all, we've been experiencing this strange text glitch when using custom fonts in Phaser-CE on some Windows machines (it's similar to these posted Chrome issues, caused by hardware rendering. And is also addressed when hardware rendering is turned off).
Even though this does appear to be a Chrome/Windows issue, the reason I'm posting it here is that I've tested this with various other Canvas 2D frameworks, and they all seem to circumvent the issue, as I only see it in Phaser-CE (yet to test PixiJS v2, but v3 is fine). Links to each version are listed above.
I plan to further investigate this issue myself when I get more time, but thought to post it here in case others have also experienced the issue, or have ideas of what it could be. Or maybe we need to replicate what other frameworks do, and patch Phaser-CE to address it.
The glitch only appears in Chrome on some Windows machines (i7 laptops with integrated Intel Xe graphics). Our company supplies these to some non-dev employees, and most or all are seeing this glitch. It does not appear on MacOS or Desktop Windows (with dedicated graphics chips). On the affected machines it doesn't matter the display drivers versions, Windows updates or Windows versions 10 or 11, all show the glitch. I suspect it's related to type of hardware, since our tested Desktops don't reproduce the issue.
The bug has been seen for over a year (since 2022). Haven't tested with other Phaser-CE or Pixi versions other than listed above.
More Symptoms
- The location of the missing chunks is inconsistent, refreshing or reloading the text object, can change the glitch locations, or even not show it
- Doesn't matter on the particular font (tested over 20 different custom fonts, both Google Fonts and custom loaded ttf)
- Larger text sizes (above 30px) don't seem to show it
- In certain conditions, the first text object doesn't have the glitch, but additional text objects can
- Changing font sizes also removes the glitch but only if the next font size is drastically different (within a few pixels, 1-4px difference, they can still be visible)
- Adding a text stroke (even very tiny like
0.0001) or rendering the text without fill, also avoids the issue - The text possibly also needs word wrapping and a new line char (
\n)
Current Workarounds
- Turning Off Hardware Rendering in Chrome prevents the issue: https://support.google.com/chrome/thread/2331445/chrome-displaying-font-problem?hl=en
- Calling
text.updateText()after instantiation, also seems to prevent the glitches (our current workaround)
Suspected issues
It could be some memory issue related to BaseTexture in updateTexture method?
I plan to investigate this more, but thought to post it here first to gather some helpful clues or additional things to check or test
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 485
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phaserjs/phaser-ce のほかの issue
-
Web audio stops playing in iOS 17 and 18 after refocusing再び着手できるかも @samme が 633 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
phaserjs/phaser-ce#748 · リアクション 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
phaserjs/phaser-ce#724 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
phaserjs/phaser-ce#711 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
phaserjs/phaser-ce#690 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
phaserjs/phaser-ce の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs:triage
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
fix(readme): skills.sh badge says 'resource not found' and the skills.sh link is a 404; skills.sh still lists the old name tdk-skills対応中かも @bfs2021 が今日担当しました。 オープンarea: ci area: docs badge bug chore cleanup consistency developer-experience difficulty: easy docs documentation good first issue hygiene journey: first-visit links priority: P3 skills user-journey
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
flisk-sh/flisk-skills#39 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Ionaru/easy-markdown-editor#656 ·