GNOME Bugzilla – Bug 371726
line-wide underline/strikethrough position
Last modified: 2018-05-22 12:23:19 UTC
There are a couple of downstream bugs against Pango: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=207882 (can't find the other) essentially coming down to having an underline mode (as default?) that chooses a single underline/strikethrough position/thickness per line, instead of per run. To choose one, you want it to be from the /dominant/ font used in the line. Since we don't have any such concept right now, we can go as far as taking the average over all chars (graphemes?) in the line. That should work pretty good. And to make runs self-contained, this can be implemented by adding new underlin/strikethrough position/thickness attributes, and attach them to runs in PangoLayout.
For underline position, taking the lowest of all in the line may work too. Depends on whether you prefer a single Chinese char in a Latin line to be crossed by the underline or to push the underline line way low.
*** Bug 481196 has been marked as a duplicate of this bug. ***
The same bug in RedHat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=204016
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/62.