Some Pango markup attributes do not work in St.Label.clutter_text
Affected version
Gnome Shell 3.36.3 (Arch Linux) running in Xorg mode
Bug summary
According to the documents, St.Label.clutter_text
is an instance of Clutter.Text
, which has a method set_markup
. However, some Pango markup attributes (like bg/fg colors) don't work.
Steps to reproduce
- download the test-markup.zip and extract it to
~/.local/share/gnome-shell/extensions/
;
//...
this._label = new St.Label({ visible: true });
Main.layoutManager.uiGroup.add_actor(this._label);
this._label.clutter_text.set_markup('<span foreground="blue">Blue text</span> is <i>cool</i>!');
this._label.set_position(200, 200);
//...
- enable it.