GNOME Bugzilla – Bug 755968
GtkCellRendererText does not apply <b> markup at line start if font-desc property has been set
Last modified: 2016-03-06 17:07:12 UTC
Created attachment 312543 [details] test case for conflicting font-desc/bold markup This is a weird one. In Builder, we highlight the autocompletion result using a sort of "fuzzy match". This means we could have markup like: <b>gtk</b>_widget_<b>show</b> The autocompletion window has it's GtkCellRendererText:font-desc property set so that the font matches, and lines up with, the textview insert mark. When the cell renderer markup begins with <b>, the first bold chunk does not get applied. It does work if we change it from bold to <u>, or <span color="orange">, etc. It does not work if we set it to <span weight="bold">! I have a test case for this, which is attached. If you comment the font_desc lines, it will show up fine.
If I add the following to the test case, it works as expected. The issue is that the FontDescription we get back from a simple parse has the weight set (to normal), and it's attribute is taking precedent over the PangoAttrWeight from the markup. font.unset_fields(Pango.FontMask.WEIGHT)
It's probably a duplicate of bug #699060.
*** This bug has been marked as a duplicate of bug 699060 ***