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

Kern alignment #727

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Kern alignment #727

merged 1 commit into from
Mar 7, 2024

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Mar 6, 2024

This was way more confusing than it should've been, but ultimately I
believe this is correct. It brings the oswald diff from 8.6k/3.3k to
7.5k/2.2k, which is very promising.

I do now see one additional difference in kerning, which is that in some cases we have identical values at each position in the designspace; this means we don't need to store deltas at all. We're also sometimes storing explicit 0 values, which is also unnecessary.

CI is currently broken, pending #726.
this is based on #725, which will go in when CI is fixed.

&side1_glyph_to_group_map,
&side2_glyph_to_group_map,
);
log::info!("got aligned value {value} for kern pair {pair:?}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe log::info level would be too noisy for this, debug might work better

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good call, I just added this for my personal edification so I could see if what was happening looked sensible, I think we can just remove it.

@cmyr cmyr force-pushed the kern-group-type branch from 794e62c to 69dd5a5 Compare March 7, 2024 15:26
Base automatically changed from kern-group-type to main March 7, 2024 15:30
@cmyr cmyr force-pushed the kern-alignment branch from 8e518f9 to e33b79e Compare March 7, 2024 15:31
This was way more confusing than it should've been, but ultimately I
believe this is correct. It brings the oswald diff from 8.6k/3.3k to
7.5k/2.2k, which is very promising.
@cmyr cmyr force-pushed the kern-alignment branch from e33b79e to 3cfc95d Compare March 7, 2024 17:20
@cmyr cmyr added this pull request to the merge queue Mar 7, 2024
Merged via the queue into main with commit e2ade50 Mar 7, 2024
10 checks passed
@cmyr cmyr deleted the kern-alignment branch March 7, 2024 17:26
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