Skip to content

fix(text): aliased variable font hinting + grid-fit (#385)#404

Merged
kolkov merged 1 commit into
mainfrom
fix/aliased-varfont-hinting
Jun 29, 2026
Merged

fix(text): aliased variable font hinting + grid-fit (#385)#404
kolkov merged 1 commit into
mainfrom
fix/aliased-varfont-hinting

Conversation

@kolkov

@kolkov kolkov commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Aliased variable font outlines now grid-fitted via gridFitOutline (Skia FT_LOAD_TARGET_MONO pattern). AA outlines remain unhinted. Enterprise auto-hinter upgrade tracked separately.

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
text/draw.go 0.00% 4 Missing ⚠️
text/varfont_render.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

…ET pattern)

Apply gridFitOutline to go-text extracted outlines for aliased mode only.
AA rendering uses unhinted outlines (smooth anti-aliasing compensates).
Follows Skia/FreeType pattern: FT_LOAD_TARGET_MONO for kAlias,
FT_LOAD_TARGET_NORMAL (lighter hinting) for kAntiAlias.

Enterprise auto-hinter upgrade tracked in separate issue.
@kolkov
kolkov force-pushed the fix/aliased-varfont-hinting branch from 90087f3 to 937329f Compare June 29, 2026 05:05
@kolkov
kolkov merged commit a0c9758 into main Jun 29, 2026
9 of 10 checks passed
@kolkov
kolkov deleted the fix/aliased-varfont-hinting branch June 29, 2026 05:17
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