Skip to content

dotted underlining in gtksourceview is very large with Red Hat Mono #67

@juhp

Description

@juhp

words

This was brought to my attention by @chergert and it is easily reproduced in current c10s Workstation for example.

Christian wrote:

The issue with the underline dots is that the size of them comes from some underline-height value in the font itself. Pango uses that to determine the size of the error dots to draw.
Adobe Source Code Pro looks fine but Red Hat Mono looks quite large in comparison to the font size.
Pango will call pango_renderer_draw_error_underline() with a height of 3 * rect->height where the rect height is the size of an underline. So presumably, slimming down the underline height would fix the issue.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions