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

Draw custom underscore glyph if it's determined it would be drawn outside of the cell #3423

Closed
Tyriar opened this issue Aug 19, 2021 · 1 comment · Fixed by #3426
Closed
Assignees
Labels
area/addon/webgl type/enhancement Features or improvements to existing features
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Aug 19, 2021

VS Code issue: microsoft/vscode#130967

I have an idea on fixing this, perhaps we should measure the underscore character in particular and measure if it would get cut off from the line and if so we would draw it custom (this could even be rolled into the upcoming custom box drawing/block element glyph setting). This custom drawing could be maybe 1 pixel higher than the underline style such that links and underscore styles can still be differentiated from underscores.

@Tyriar
Copy link
Member Author

Tyriar commented Aug 19, 2021

Alt approach: Shift the texture up instead of custom drawing to ensure it's always within the cell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/addon/webgl type/enhancement Features or improvements to existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant