Conversation
1f6c1f4 to
1c66211
Compare
Co-authored-by: Zhai Can <bczhc0@126.com>
This is not rendered correctly before. Just ignore and make the test happy for now.
1c66211 to
3e7475e
Compare
|
The CI outputs: On my machine it passes. Falling back to Twitter Color Emoji: Indeterministic font fallback causes the test failure. Honestly I have no idea why is that. Solution thoughts? |
|
Why does this PR change Thank you. |
|
True, #583 does track that RTL is mishandled. The golde test image changing makes sense to me. The PR changes which font supplies which run, so |
|
@nicoburns and @DJMcNab , I think this PR might be hitting a CI/harness issue. It sometimes passes and sometimes not because of the iteration order of I am going to open a PR to replace |
|
@luisbg please can you stop tagging me in these. Tagging me does not give me any more time to actually review these PRs. Actual review comments that explain what review steps you have performed (reviewing the implementation, comparing it with various specs, testing the code against SVGs, etc), and/or reasons for why you think a given PR is good/bad are helpful. |
|
Harness fix at #1136 What I checked to review this PR:
Overall I think this is worth landing: it fixes #301 (open since 2020) and #916 , from what I've read the approach matches how CSS specifies font-family resolution, and the conflict is confined to |

The old font resolving approach is to scan the whole tspan text and try to find a font to match all the text. According to CSS
font-familyfont resolving schema, it should resolve and fallback using the family name one by one, making font uses more ergonomic.This implements a simple resolving algorithm doing what it states above.
Fix #301, #916.
Tests
Before:

After:
