diff options
Diffstat (limited to 'sway/commands/font.c')
-rw-r--r-- | sway/commands/font.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sway/commands/font.c b/sway/commands/font.c index 8e0b51e3..3071ccd8 100644 --- a/sway/commands/font.c +++ b/sway/commands/font.c @@ -12,7 +12,16 @@ struct cmd_results *cmd_font(int argc, char **argv) { } char *font = join_args(argv, argc); free(config->font); - config->font = strdup(font); + + if (strncmp(font, "pango:", 6) == 0) { + config->pango_markup = true; + config->font = strdup(font + 6); + } else { + config->pango_markup = false; + config->font = strdup(font); + } + + free(font); config_update_font_height(true); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } |