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 648157 - Incorrect application of color to ligatures
Incorrect application of color to ligatures
Product: pango
Classification: Platform
Component: general
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
Depends on:
Reported: 2011-04-18 21:27 UTC by Alexandre Prokoudine
Modified: 2018-05-22 12:59 UTC
See Also:
GNOME target: ---
GNOME version: ---

example of broken ligature coloring (15.10 KB, image/png)
2011-04-18 21:27 UTC, Alexandre Prokoudine

Description Alexandre Prokoudine 2011-04-18 21:27:48 UTC
Created attachment 186235 [details]
example of broken ligature coloring

When I try to apply a different color to a text selection that is connected to another letter via a ligature from left border, the character before selection gets recolored too.

See attached image for a sample, where instead of two selected characters three get recolored.

It does not happen with all ligatures though, as far as I can see.

The font in question is here:

I have a suspicion that newly filed has something to do with it, but it's not my job to decide :)
Comment 1 Michael Natterer 2011-04-18 22:35:05 UTC
This is the markup:

<markup><span font=\"Lobster 1.4,\">simple e<span foreground="#00aeff">xa</span>mple</span></markup>

So clearly no a GIMP problem.
Comment 2 Michael Natterer 2011-04-18 22:38:26 UTC
And not my job to decide either :) -> pango
Comment 3 Michael Natterer 2011-04-18 22:40:35 UTC
Completely unescaped markup:

<markup><span font="Lobster 1.4,">simple e<span foreground="#00aeff">xa</span>mple</span></markup>
Comment 4 Behdad Esfahbod 2011-04-26 22:14:13 UTC
I think I kinda found a solution for this. For multi-color ligatures we can use a cairo gradient with sharp transition to do multi-color without having to fall back to clipping.
Comment 5 Alexandre Prokoudine 2016-06-03 01:19:06 UTC
It was clearly a mistake on my part to report this as a bug. Ligatures are ligatures.
Comment 6 Behdad Esfahbod 2016-06-03 21:50:03 UTC
Actually no, this *is* a bug.
Comment 7 GNOME Infrastructure Team 2018-05-22 12:59:55 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: