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

[skrifa] cff hintmap #686

Merged
merged 1 commit into from
Nov 2, 2023
Merged

[skrifa] cff hintmap #686

merged 1 commit into from
Nov 2, 2023

Conversation

dfrg
Copy link
Member

@dfrg dfrg commented Nov 1, 2023

Adds the HintMap type (CF2_HintMap in FreeType).

This is basically the core of the CFF hinting engine. It generates a list of sorted edges from the "blues" alignment zones and per-glyph stem hints which can be used to transform from character space (font units) to device space (grid fitted pixels).

I'd expect one or two more PRs to hook it all up, but this should be the worst of it. Almost there!

Adds the HintMap type (CF2_HintMap in FreeType).

This is basically the core of the CFF hinting engine. It generates a list of sorted edges from the "blues" alignment zones and per-glyph stem hints which can be used to transform from character space (font units) to device space (grid fitted pixels).
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

I am not going to pretend to have much understanding of what's going on here, but nothing jumps out at me as being obviously bad. 👼

@dfrg
Copy link
Member Author

dfrg commented Nov 2, 2023

When it comes to hinting, I'll take "not obviously bad" as high praise :)

@dfrg dfrg merged commit 776ffe5 into main Nov 2, 2023
8 checks passed
@dfrg dfrg deleted the cff-hintmap branch November 2, 2023 20:59
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