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

Fix font height offsets #151

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Fix font height offsets #151

merged 1 commit into from
Jul 10, 2024

Conversation

g-rden
Copy link
Contributor

@g-rden g-rden commented Jul 10, 2024

The allocated line height is now bigger, because the glyphs didn't fit in it. The changes in text.c are just for the line height to be similar to the old one.

Comparison with fira 9pt:
left: new, right: old
new-old

Closes #139

@artemsen
Copy link
Owner

Wow!!! Thank you!
New version has cropped characters, but it definitely looks better than jumped glyphs.

Play font:
image

@artemsen artemsen merged commit 2f33c4c into artemsen:master Jul 10, 2024
2 checks passed
@g-rden
Copy link
Contributor Author

g-rden commented Jul 10, 2024

Missed that entirely. Liberation font is also cropped. I'm not sure how to deal with this.

@g-rden g-rden deleted the font-height-ofs branch July 11, 2024 09:02
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.

Incorrect rendering of the character i
2 participants