Skip to content

use the ide font for inline paged table output - #18901

Merged
kevinushey merged 1 commit into
mainfrom
bugfix/18874-pagedtable-font
Sep 23, 2026
Merged

kevinushey merged 1 commit into
mainfrom
bugfix/18874-pagedtable-font

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Intent

Inline data frame and rmarkdown::paged_table() chunk output rendered every cell in bold on some Windows machines.

Approach

The paged table is the one piece of chunk output rendered straight into the editor DOM rather than inside an output iframe, and RStudio's copy of pagedtable.css gave it a font stack of its own led by "Lucida Sans". On Windows desktop the rest of the IDE uses Segoe UI (the Electron default), so the two diverge. "Lucida Sans" ships with Office, not Windows, and a machine holding only its Demibold face satisfies the family request with that face, so weight-400 text renders demibold. The rmarkdown copy of the stylesheet declares no font at all, which is why knitted HTML looks normal.

This drops the hardcoded stack and has ChunkDataWidget apply the IDE's proportional font to the widget element, matching every other proportional-font surface in the IDE.

Testing

New e2e test (notebook_paged_table_font.test.ts) runs a bare data frame and a paged_table() chunk and asserts the cell's computed font family equals the document body's and its weight is 400. It fails on main (the cell resolves to the old standalone stack) and passes with this change, in server-dev mode on macOS.

Fixes #18874.

@kevinushey kevinushey added this to the 2026.10 (Blue Mistflower) milestone Sep 23, 2026
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:29 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:29 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:29 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:29 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:31 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:31 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey deployed to e2e-playwright September 23, 2026 16:42 — with GitHub Actions Active
@kevinushey
kevinushey merged commit cee42c0 into main Sep 23, 2026
29 checks passed
@kevinushey
kevinushey deleted the bugfix/18874-pagedtable-font branch September 23, 2026 17:22
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
3079 0 196 4
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 774 0 38 2
✅ desktop-macos 773 0 42 0
✅ desktop-windows 778 0 42 0
✅ server-linux 724 0 44 2
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 5c166005b538553eb9d655340186459a8aef9900 - Run #1140

This branch was successfully deployed

1 active deployment
e2e-playwright — 5c166005 Deployed Sep 23, 2026 by kevinushey via windows / e2e-desktop-windows (4) #1140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bold text in paged_table data cells when running chunk inline

1 participant