Skip to content

Conversation

@hecrj
Copy link
Contributor

@hecrj hecrj commented Nov 23, 2025

Introduces a new Hinting enum that can be used to snap glyphs to integral coordinates during layout.

This is specially useful to increase the readability of smaller text:

Disabled

image image

Enabled

image image

I'm unsure if there are missing parts here. For instance, I suspect the x_offset of glyphs may need tuning too?

I also noticed that swash does not seem to always produce clear glyph outlines even if you hardcode a subpixel offset of 0. But I imagine that depends on the font? Or maybe it's because swash does not perform horizontal hinting?

@hecrj hecrj marked this pull request as ready for review November 27, 2025 22:23
@jackpot51 jackpot51 merged commit a07a619 into pop-os:main Dec 1, 2025
2 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.

2 participants