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

Underline style and color rendering #3921

Merged
merged 26 commits into from
Jul 30, 2022
Merged

Underline style and color rendering #3921

merged 26 commits into from
Jul 30, 2022

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jul 23, 2022

Fixes #1145

This sets up the infrastructure for 3-keyed glyphs where the new key is ext. Currently ext is set to underlineStyle but will be moved to use the packed ext format, similar to fg/bg.

DOM

Screen Shot 2022-07-23 at 9 22 19 am

Canvas

Screen Shot 2022-07-23 at 9 22 41 am

Webgl

Screen Shot 2022-07-23 at 9 22 55 am

@Tyriar Tyriar added this to the 4.20.0 milestone Jul 23, 2022
@Tyriar Tyriar self-assigned this Jul 23, 2022
@Tyriar Tyriar changed the title Underline style rendering Underline style and color rendering Jul 23, 2022
@Tyriar
Copy link
Member Author

Tyriar commented Jul 23, 2022

Colors done too:

DOM

Screen Shot 2022-07-23 at 11 20 44 am

Canvas

Screen Shot 2022-07-23 at 11 20 25 am

Webgl

Screen Shot 2022-07-23 at 11 19 12 am

@Tyriar
Copy link
Member Author

Tyriar commented Jul 23, 2022

No more overlapping of text/underline:
Screen Shot 2022-07-23 at 2 28 53 pm

@Tyriar
Copy link
Member Author

Tyriar commented Jul 23, 2022

Continuous curves 😍

Screen Shot 2022-07-23 at 2 49 04 pm

@Tyriar Tyriar mentioned this pull request Jul 25, 2022
7 tasks
@Tyriar Tyriar modified the milestones: 4.20.0, 5.0.0 Jul 28, 2022
@Tyriar
Copy link
Member Author

Tyriar commented Jul 30, 2022

dpr 1 curly rendering on Windows isn't great atm:

image
image

@Tyriar
Copy link
Member Author

Tyriar commented Jul 30, 2022

Updated, it was bad when line width was 1:

image

image

@Tyriar
Copy link
Member Author

Tyriar commented Jul 30, 2022

Glyph threshold clearing is causing an issue for underlines:

image

This causes some underlines to disappear which looks very bad for
colored underlines
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.

Curly and colored underlines
1 participant