Repository navigation
fix(layers): restore SDF text outlines - #10545
Merged
Merged
Conversation
Pessimistress
approved these changes
Aug 11, 2026
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.
Closes #10274
Background
The 9.3 text metrics update wrote padded SDF bitmaps into the font atlas while keeping icon frames restricted to measured glyph bounds, clipping outlines and reducing their perceived height.
Change List
HOgI.SDF outline render case covering straight edges, curves, a descender, a narrow glyph, and punctuation.Note
Medium Risk
Changes font-atlas glyph framing for all custom/renderer-produced glyphs; behavior is localized to text rendering but affects SDF layout and anchors globally for that path.
Overview
Fixes SDF text outlines being clipped after the 9.3 text-metrics change: padded SDF bitmaps were drawn into the atlas but glyph icon frames still matched measured bounds, so halos and outlines were cut off.
In
font-atlas-manager, after copying renderer output into the atlas, frames now use the full copied bitmap (x,y,width,height) and anchor offsets are adjusted so horizontal advance and vertical layout stay aligned with the measured glyph.Adds a platform-independent render test (
text-layer-sdf-outline) with a synthetic SDF font renderer and the stringHOgI.(edges, curves, descender, narrow glyph, punctuation) plus an outline style, guarded by a golden image.Reviewed by Cursor Bugbot for commit 4dca294. Bugbot is set up for automated code reviews on this repo. Configure here.