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 113931 - Support attributes that cover only part of a cluster
Support attributes that cover only part of a cluster
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: Medium API
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2003-05-28 22:43 UTC by Owen Taylor
Modified: 2018-05-22 12:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Small start on necesary changes (1.15 KB, patch)
2003-05-29 22:11 UTC, Owen Taylor
needs-work Details | Review
gtk-ligature-underline-problem.png (17.52 KB, image/png)
2008-04-15 18:59 UTC, Behnam Esfahbod
  Details

Description Owen Taylor 2003-05-28 22:43:38 UTC
Sometimes - see bug 104976 - you actually want attributes
covering only part of a logical cluster. An approach
that occurs to me is to simply stick all attributes 
that touch any part of the run into 
glyph_item->item->analysis.extra_attrs *with the correct
start_index/end_index (same index system as
glyph_item->glyphs->log_clusters[])

A simple client would just render all the attributes, but
a more sophisticated client would be able to:

 A) Currently use the simple linear mapping we use, for
    say, hit point detection

 B) In the future, possibly use some extended Pango interface
    (needing engine support) to understand the structure
    of the cluster better, possibly using information
    such as the "Ligature Caret" information in the
    OpenType GDEF table.
Comment 1 Owen Taylor 2003-05-29 22:11:06 UTC
Created attachment 16966 [details] [review]
Small start on necesary changes
Comment 2 Owen Taylor 2003-05-29 22:15:42 UTC
The change I'm putting in for bug 104976 is a start - it
sets things up so all attributes that touch a cluster
are added to the cluster.

The next part of the change would be to work on having
accurate ranges for the attributes in item->extra_attrs.
This will require changes in pango_item_split() (attached)
pango_glyph_item_apply_attrs(), pango_itemize().

From there, you could work on making the rendering code
(in Pango and GTK+) use that information and linear
character division.

Finally, would be the question of adding interfaces for
more complicated sub-cluster division between characters,
as described above.
Comment 3 Behnam Esfahbod 2008-04-15 18:59:41 UTC
Created attachment 109331 [details]
gtk-ligature-underline-problem.png

DejaVu, the default font of most distros has the ligatures, which with this feature lacking causes confusing display of accesskey in the menu.
Comment 4 GNOME Infrastructure Team 2018-05-22 12:02:35 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/8.