Commit a448615
committed
fix(test): align font rendering between preview and renderer in parity test
The preview browser was rendering Inter via system/fallback fonts while
the render pipeline injected embedded Inter woff2 via injectDeterministicFontFaces.
On Ubuntu CI, Chromium has no bundled Inter, so the preview fell back to Noto
Sans, producing large text-area diffs (YAVG≈18).
Two changes align the two sides:
- Switch the parity fixture from `font-family: Inter, sans-serif` to
`font-family: sans-serif` so the render pipeline sees only a generic
family and skips font injection — both browsers use the same Chromium
built-in Noto Sans.
- Add `--font-render-hinting=none` to the Playwright browser launch args
to match the engine's Chrome flags, eliminating sub-pixel hinting
differences.1 parent 1630f7c commit a448615
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- packages/studio/e2e
- fixtures/parity-project
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments