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

Use proper font metrics for calculating line height & update fonts #16

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

toothbrush7777777
Copy link
Contributor

@toothbrush7777777 toothbrush7777777 commented Jan 3, 2024

I ran ./codegen_n_update.sh for each commit to update the generated sources.

This code uses the proper font metrics to compute the line height including the ascenders and descenders, so that q, g and Ä all display correctly.

Note

The correct line height to font size ratio is about 0.75 rather than the current 0.84. This makes the computed font size about 10% smaller.

@phip1611 phip1611 self-assigned this Jan 3, 2024
@phip1611
Copy link
Owner

phip1611 commented Jan 3, 2024

Amazing! Thanks for working on this. I'll take a look at this soon.

@phip1611 phip1611 changed the base branch from main to dev January 9, 2024 12:41
@phip1611
Copy link
Owner

phip1611 commented Jan 9, 2024

Thanks so much for working on this! This should also fix #15 #14.

@phip1611 phip1611 merged commit 540413c into phip1611:dev Jan 9, 2024
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