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

Crisp text rendering when positions are integer values #175

Open
janpaul123 opened this issue Mar 25, 2022 · 0 comments
Open

Crisp text rendering when positions are integer values #175

janpaul123 opened this issue Mar 25, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@janpaul123
Copy link
Contributor

janpaul123 commented Mar 25, 2022

It's currently hard to even manually get good font hinting (barring implementing all of #169..). Some basic fixes to this probably include:

  1. Make it so subpixel_x_fract and subpixel_y_fract are 0 when rendering at integer positions.
  2. Make it so with our default fonts glyphs are optimally hinted when rendering at integer positions (might also include using integer default values for stuff in TextStyle.
  3. Round up widths and heights for layout boxes in TextIns::draw_walk
  4. Add a mode where warnings are logged when rendering with non-integer values
  5. Add basic "grid rendering" mode where advance_width and initial positions are rounded.

Combined with a debugger #174 this would help a lot.

@janpaul123 janpaul123 added the enhancement New feature or request label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant