After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 371726 - line-wide underline/strikethrough position
line-wide underline/strikethrough position
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: pango-maint
pango-maint
: 481196 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-06 21:34 UTC by Behdad Esfahbod
Modified: 2018-05-22 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2006-11-06 21:34:35 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.
Comment 1 Behdad Esfahbod 2006-11-06 21:35:44 UTC
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.
Comment 2 Behdad Esfahbod 2007-09-28 23:43:56 UTC
*** Bug 481196 has been marked as a duplicate of this bug. ***
Comment 3 LingNing Zhang 2007-09-29 03:30:54 UTC
The same bug in RedHat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=204016
Comment 4 GNOME Infrastructure Team 2018-05-22 12:23:19 UTC
-- 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.