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

Update Skrifa to 0.22.0 #697

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Update Skrifa to 0.22.0 #697

merged 5 commits into from
Sep 23, 2024

Conversation

DJMcNab
Copy link
Member

@DJMcNab DJMcNab commented Sep 23, 2024

The main consequence of this is that there is a new auto-hinter.

I've also removed the glyph module from Vello, as the actual code in there is never used, as far as I can see.

@DJMcNab DJMcNab requested a review from dfrg September 23, 2024 10:55
Copy link
Collaborator

@dfrg dfrg left a comment

Choose a reason for hiding this comment

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

At some point, we might want to have a separate cache for autohinting instances the same way we do for glyf and cff but this looks good for now, thanks!

engine: skrifa::outline::Engine::AutoFallback,
target: skrifa::outline::Target::Smooth {
mode: skrifa::outline::SmoothMode::Lcd,
// TODO: Set based on whether the anti-aliasing mode is Area?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we should always set this to false as you’ve done here. See googlefonts/fontations#1080

mode: skrifa::outline::SmoothMode::Lcd,
// TODO: Set based on whether the anti-aliasing mode is Area?
symmetric_rendering: false,
// TODO: Does Parley handle layout in a hinting-aware way?
Copy link
Collaborator

@dfrg dfrg Sep 23, 2024

Choose a reason for hiding this comment

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

Parley expects linear metrics. Hinting aware layout requires scaling glyph outlines to compute hinted advance widths which is incredibly expensive.

@DJMcNab DJMcNab added this pull request to the merge queue Sep 23, 2024
Merged via the queue into linebender:main with commit 96457d0 Sep 23, 2024
17 checks passed
@DJMcNab DJMcNab deleted the skrifa-up branch September 23, 2024 12:32
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