-
Notifications
You must be signed in to change notification settings - Fork 61
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
dotted underlining in gtksourceview is very large with Red Hat Mono #67
Comments
I don't think I'd expect to see dotted underlines in a terminal... |
I don't think VTE has anything that can render Another option we have, would be to use a single red underline instead of the dots. It's a pretty small patch to do that in Text Editor. Here are two pictures, one with Red Hat Mono and one with Source Code Pro both at 11pt. This uses the The difference in thickness below is why the dots are so large in Pango rendering. /cc @matthiasclasen just in case we want to address this differently in Pango. Source Code Pro 11Red Hat Mono 11 |
So what pango does is it uses the same amount of space for error underlines that we use for double underlines, which is 3 times the underline thickness. That was appropriate for the traditional zigzag pattern. Since we changed what we draw in GTK's pango renderer implementation, a simple fix would be to make that implementation not use the full height of the rectangle we are given, but draw the dots with the same height as a single underline. One thing I'm not quite clear on is whether this needs to font-specific, or can be done for every font. |
This was brought to my attention by @chergert and it is easily reproduced in current c10s Workstation for example.
Christian wrote:
Though from my simple testing standard underlining seems to be fine in other contexts: eg in vte (Gnome Terminal)?
Correct me if I am wrong there.
The text was updated successfully, but these errors were encountered: