Skip to content

chore: update examples to gg v0.50.13 - #481

Merged
kolkov merged 6 commits into
mainfrom
chore/examples-v0.50.13
Aug 6, 2026
Merged

chore: update examples to gg v0.50.13#481
kolkov merged 6 commits into
mainfrom
chore/examples-v0.50.13

Conversation

@kolkov

@kolkov kolkov commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

14 examples updated to gg v0.50.13

kolkov added 6 commits August 6, 2026 13:31
TestADR054_ShearVariableFont_BoldVsRegular failed locally with GPU
CoverageFiller (SparseStrips) because at 40px, AA fringe pixels
dominate glyph body — pixel count comparison inverts for bold vs regular.

Root cause: SparseStrips (4×4 tiles) and AnalyticFiller (scanline) produce
different sub-pixel coverage at small sizes. NOT a gvar bug — variations
applied correctly (verified via TextPath coordinate comparison).

Fix: increase to 80px where glyph body dominates over AA fringe.
Both rasterizers now produce bold > regular consistently.
Introduce advanceResolver — unified advance resolution used by Advance(),
Glyphs(), and AppendGlyphs(). Priority: TT hinted > HVAR > raw hmtx.
This matches drawGlyphs' hintedOrRawAdvance() ensuring MeasureString
and DrawString agree on character positions (Skia/Chrome pattern).

Enterprise research: Skia, FreeType, Chrome all enforce measurement ==
rendering advances from a single source controlled by hinting level.

Fixes #479
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov
kolkov merged commit 69ecfb9 into main Aug 6, 2026
25 of 31 checks passed
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.

1 participant