| Summary: | On iOS 15, when the canvas font is set to -apple-system, calling fillText with Chinese characters would cause the whole canvas area to blank. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | luonan.666 | ||||
| Component: | Canvas | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Blocker | CC: | dino, mmaxfield, simon.fraser, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | HTML5 | ||||
| Version: | Safari 15 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
I cannot reproduce this with OS 15.1 beta. I think that it was a known issue, but cannot find the bug to dupe to. Likely, 230187. *** This bug has been marked as a duplicate of bug 230187 *** |
Created attachment 440751 [details] render blank demo On iOS 15, when the canvas font is set to -apple-system, calling fillText with Chinese characters would cause the whole canvas area to blank. first, set ctx.font = '28px -apple-system'; and then, draw some chinese, ctx.fillText('你好', 10, 50); then the whole canvas area becomes blank. but English letters could render correctly. Just change the font-family to 'Arial', everything works fine.