Skip to content

Add font embolden #823

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jrmoulton
Copy link

@jrmoulton jrmoulton commented Feb 25, 2025

This is basically just a direct port of the swash implementation of font embolden.

It does seem to have about twice the "strength" of the swash implementation though and I haven't been able to figure out why.

@jrmoulton
Copy link
Author

jrmoulton commented Feb 27, 2025

Need to investigate:

  • Strength double
  • Doing embolden in stroke expansion on the GPU

@jrmoulton jrmoulton force-pushed the push-nwztnvrqyyux branch 5 times, most recently from cef09c7 to 3e7d17e Compare March 18, 2025 07:30
switch to gpu embolden
@jrmoulton
Copy link
Author

jrmoulton commented Mar 18, 2025

This is now working.

It has path expansion/stem darkening working on the GPU and properly works with Bevel, Miter, and Round joins. These are all configurable.

The changes are implemented in both the cpu and gpu flatten shader.

@raphlinus
Copy link
Contributor

A quick update, this was discussed in Renderer office hours, also see transcript of the discussion.

This would be great to have in some form, but the big question is review bandwidth as it's a fairly major change and has a risk of breaking things. We haven't forgotten about it, but need to decide what to do.

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