Skip to content

fix: Expire fallback font measurements after fonts load - #8106

Open
minwookshin wants to merge 3 commits into
plotly:mainfrom
minwookshin:fix/partial-redraw-font-cache
Open

minwookshin wants to merge 3 commits into
plotly:mainfrom
minwookshin:fix/partial-redraw-font-cache

Conversation

@minwookshin

Copy link
Copy Markdown

Fixes #8099.

Expire bounding boxes measured while web fonts load, once the fonts settle. The next partial redraw then measures the loaded font. Preserve cache hits during the draw and entries measured before loading began. This does not trigger an extra redraw.

Drawing, plot API, and treemap tests: 285 pass. One existing uniformtext scale test fails identically on unchanged source. Typecheck, lint, syntax, and generated-schema checks pass.

Partial treemap zoom after a delayed font load

Code assistance: OpenAI Codex; changes reviewed by the contributor.

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.

[BUG]: Text first drawn outside a full redraw keeps fallback font sizes after its web font loads

1 participant