mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Add support for pango markup
This commit is contained in:
parent
09efe0ce75
commit
2a0836e3bd
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text) {
|
||||
PangoLayout *layout = pango_cairo_create_layout(cairo);
|
||||
pango_layout_set_text(layout, text, -1);
|
||||
pango_layout_set_markup(layout, text, -1);
|
||||
PangoFontDescription *desc = pango_font_description_from_string(font);
|
||||
pango_layout_set_font_description(layout, desc);
|
||||
pango_layout_set_single_paragraph_mode(layout, 1);
|
||||
|
|
Loading…
Reference in a new issue