Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support rendering of underline style and color #16097
Support rendering of underline style and color #16097
Changes from 19 commits
d2bea4c
d341402
a042401
e16055c
1df5894
0bdeb1a
c179041
8684de8
dc986c1
bea07a5
4f13a3c
1f3e535
2babe7b
e31d0fb
63ae6ce
b5574d0
b8d3caa
a2c4a36
6e4c65a
b0be8b6
1ba1782
4f7ba10
c7a8a55
3923fde
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clever!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi guys,
Something isn't right here: I can't see curly underlines until I change font size to at least 35 in conhost or 20 in WT, which is huge even on a full HD screen:
Conhost (20) | WT (12.8107)
![image](https://private-user-images.githubusercontent.com/11453922/282084952-4a03c331-1690-4ade-b352-8a7e9353ec43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjM4NDcsIm5iZiI6MTczOTQ2MzU0NywicGF0aCI6Ii8xMTQ1MzkyMi8yODIwODQ5NTItNGEwM2MzMzEtMTY5MC00YWRlLWIzNTItOGE3ZTkzNTNlYzQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlYzEyNjQwZDdmMjlmNDBjZmNiMWEzNDI4ZDdkYjIyNGEyZWVjZWQ0ZTUwNTJhNTY4ODRhNjdiODZmZGVlNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-ADn1rJPWsofr9NVV7cEv4C4RtL7IFdSdcOW6dAZ-fU)
It's definitely not too small to be curly yet:
![image](https://private-user-images.githubusercontent.com/11453922/282086236-419b48b2-42a0-4a78-b4d2-03aa670b0d76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjM4NDcsIm5iZiI6MTczOTQ2MzU0NywicGF0aCI6Ii8xMTQ1MzkyMi8yODIwODYyMzYtNDE5YjQ4YjItNDJhMC00YTc4LWI0ZDItMDNhYTY3MGIwZDc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0ZGMyODRjNGJjN2VlNzhiMzBlMjhjNjFlOWVmNTg5YjkzYzBhMjcxMzdlY2FjODNhOTQ2Nzk0NzU5ZWYzOGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UJ6IpVh1tkN6pQ2GjmoZaYU79WiOjbQyDdB27YV5afk)
wezterm (8.0)
Technically it's not too small if the wave height is at least 2 pixels:
![image](https://private-user-images.githubusercontent.com/11453922/282096801-d6782c1a-2c47-44b7-93e3-02de8fa6fdf8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjM4NDcsIm5iZiI6MTczOTQ2MzU0NywicGF0aCI6Ii8xMTQ1MzkyMi8yODIwOTY4MDEtZDY3ODJjMWEtMmM0Ny00NGI3LTkzZTMtMDJkZThmYTZmZGY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2ZTU2MDMwODJmMTBmOWMzNjE5OThjNmRkMThiNDY1MmIwNjY1ZTYwMWE1ODg3ODQ5NmExYzE3NjE1NjY3MTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TWGiZecWyYjo5vaAY6xNhMRbGsnd7Txj-38BTRHmlfs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the case for me too when using a 1440p monitor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curly line is only drawn when there's enough space for it 1 - space between (singly) underline and Cell bottom. If we don't do this, the curly line will always be rendered, but it would be clipped, which wouldn't look nice (or correct) 😅
For example, when using Courier New (font):
When WT draws Curlyline:
When it doesn't:
I'd love to help you guys 😀, but can you file an issue for this? We can discuss in detail what might be causing this issue at those font sizes. Also, make sure to add font name (and other details that might be helpful) for repro.
Footnotes
To get a rough idea of how much space is available between cell bottom and underlines is to select the cell where the underline is drawn. Cell area is highlighted by the selection, and you can see how much space is available between cell bottom and underline baseline. This works on Conhost too (even better since you can scroll to increase fontsize, and the selection is preserved). ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, #16288