Repository navigation
fix: Render a loading font face with its family's loaded face - #26059
Draft
MartinZikmund wants to merge 1 commit into
Draft
MartinZikmund wants to merge 1 commit into
MartinZikmund wants to merge 1 commit into
Conversation
Faces of a manifest font now load on first use, so a SemiBold title rendered with the system fallback (monospace on WebAssembly) until its face arrived. Use the family's already-loaded normal face meanwhile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TXMNu2RupRy4QPFGK2cmij
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
This was referenced Nov 4, 2026
Contributor
|
The build 243715 found UI Test snapshots differences: Details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: part of #24079 (complements #24080; does not close the issue)
PR Type:
🐞 Bugfix
What changed? 🚀
Once faces of a manifest font load on first use (#24080), text in a not-yet-loaded face (e.g. a SemiBold title) renders with the system fallback until the face arrives. On WebAssembly that fallback is a monospace font, which is a visible flash.
FontDetailsCachenow renders such text with the family's already-loaded normal face, so only the weight or style catches up when the face lands.Validation:
Measurements
No download change. The fallback window lasts until the SemiBold face arrives, ~1 RTT plus 68 KB.
How this was measured
A
dotnet new unoapppage with a SemiBold title and a dozen common controls (Skia,net10.0-browserwasm, Release publish), built twice from the same tree: with all six startup PRs (#26054–#26059) plusUnoXamlResourcesTrimming, and with only this PR's change removed. Both builds were served by the same static server (brotli q11, immutable caching for fingerprinted files) and loaded cold in headless Chrome, runs interleaved. "Visually ready" is the first CDP screencast frame identical to the settled final frame. 4G = 9 Mbps down, 85 ms RTT (CDP emulation). Values are medians with (min–max). A difference is only claimed where the ranges don't overlap. Rig: Playwright + Node, available on request.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNu2RupRy4QPFGK2cmij