Skip to content

chore: update examples to gg v0.50.15 - #487

Merged
kolkov merged 12 commits into
mainfrom
chore/examples-v0.50.15
Aug 9, 2026
Merged

kolkov merged 12 commits into
mainfrom
chore/examples-v0.50.15

Conversation

@kolkov

@kolkov kolkov commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

14 examples updated

kolkov added 12 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
MultiFace.Source() returns nil → panic in 4 GPU text locations.
Add nil checks that return error instead of panic, causing graceful
fallback to CPU path. Full per-font-run support planned in ADR-065.
advanceResolver incorrectly prioritized TT-hinted advances over HVAR for
variable fonts. TT hint cache uses default-weight phantom points (no gvar
deltas), producing wrong advances at non-default instances (wght=700).

Fixed priority (FreeType ttgload.c:964-977 pattern):
  Static fonts:   TT hinted > raw hmtx (unchanged)
  Variable fonts:  HVAR > raw hmtx (TT cache skipped)

Regression reported by @tsl0922: letters overlapping under shear at v0.50.14.
@codecov

codecov Bot commented Aug 9, 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 ed2c440 into main Aug 9, 2026
11 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