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

font-patcher: Fix line gap redistribution #1117

Merged
merged 1 commit into from
Feb 11, 2023
Merged

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Feb 11, 2023

[why]
Instead of redistributing the line gap we remove it. At least when HHEA or TYPO metrics are used.
It's ok with WIN metrics.

[how]
If we have negative numbers for a gap and want to add more to it, where 'add' means 'make it more', we must of course subtract the value.

But baseline-to-baseline code into function so we can check it after all our gymnastics for correctness. It means the metrics.

[note]
Also correct out-of-sync comment.

Fixes: #1116

Reported-by: Nathaniel Evan

Description

Please explain the changes you made here.

Requirements / Checklist

What does this Pull Request (PR) do?

Fix wrong gap removal on HHEA and TYPO metrics fonts. Was ok on WIN metrics fonts.

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

@Finii Finii added the Bug fix label Feb 11, 2023
[why]
Instead of redistributing the line gap we remove it.
At least when HHEA or TYPO metrics are used.
It's ok with WIN metrics.

[how]
If we have negative numbers for a gap and want to add more to it, where
'add' means 'make it more', we must of course _subtract_ the value.

But baseline-to-baseline code into function so we can check it after all
our gymnastics for correctness. It means the metrics.

[note]
Also correct out-of-sync comment.

Fixes: #1116

Reported-by: Nathaniel Evan <nathanielevan>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii merged commit e69a025 into master Feb 11, 2023
@Finii Finii deleted the bugfix/linegap-again branch February 11, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Victor Mono vertical alignment?
1 participant