stuartlangridge/gnome-shell-clock-override

[REQUEST] Support of Pango markup

Opened this issue · 2 comments

Hello, thank you for this nice extension :)

I would love to see support of Pango to customize text.
https://developer.gnome.org/pango/stable/PangoMarkupFormat.html

Example:
(<)span font_family="comfortaa" font_size="x-large" font_weight="bold">fedora</span(>)
-- nb: remove ()
It's what I use in "Activities Configurator" extension, which offers Pango formatting.

I'm afraid not; I've just tried to do this. The clock is an St.Label; it seems that if I have markup in my clock override string and retrieve the inner ClutterText from this St.Label and set use_markup to true then Gnome Shell hangs. I don't know why this is, but debugging it is really annoying because it hangs Shell all the time. So, I won't close this issue (because having markup be allowed in the override string is a good idea) but I personally don't plan to work on it. If someone else does work on it though I'd be happy to take a pull request!

I'm sad to hear that but I totally understand, keep up the good work man!