GNOME Bugzilla – Bug 648157
Incorrect application of color to ligatures
Last modified: 2018-05-22 12:59:55 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: http://www.google.com/webfonts/family?family=Lobster&subset=cyrillic#download I have a suspicion that newly filed https://bugzilla.gnome.org/show_bug.cgi?id=648155 has something to do with it, but it's not my job to decide :)
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.
And not my job to decide either :) -> pango
Completely unescaped markup: <markup><span font="Lobster 1.4,">simple e<span foreground="#00aeff">xa</span>mple</span></markup>
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.
It was clearly a mistake on my part to report this as a bug. Ligatures are ligatures.
Actually no, this *is* a bug.
-- 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/190.