Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontdue rasterizer and other font adjustments #201

Merged
merged 5 commits into from
Jun 11, 2021
Merged

Fontdue rasterizer and other font adjustments #201

merged 5 commits into from
Jun 11, 2021

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jun 10, 2021

Several improvments to text rendering, plus font raster configuration (under theme configuration).

Enables usage of the https://github.com/mooman219/fontdue rasterizer. Subjectively it may be a little better but still isn't perfect and noticably slows down start-up time.

Another option is to align to the horizontal side bearing using ab_glyph. In some ways this is better than sub-pixel alignment, in some ways not. Either way it's not close to grid fitting.

The biggest improvement to rendering was one of the simplest changes: vertically aligning text lines to the pixel grid during layout (in kas-text). This is enabled by default; other options (including sub-pixel positioning) are now disabled by default which seems to be the best general solution.

@dhardy
Copy link
Collaborator Author

dhardy commented Jun 11, 2021

That test works for me (also on the latest nightly) and the error message is incomprehensible. I'll ignore for now.

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