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) { | |||
12 | } | 12 | } |
13 | char *font = join_args(argv, argc); | 13 | char *font = join_args(argv, argc); |
14 | free(config->font); | 14 | free(config->font); |
15 | config->font = strdup(font); | 15 | |
16 | if (strncmp(font, "pango:", 6) == 0) { | ||
17 | config->pango_markup = true; | ||
18 | config->font = strdup(font + 6); | ||
19 | } else { | ||
20 | config->pango_markup = false; | ||
21 | config->font = strdup(font); | ||
22 | } | ||
23 | |||
24 | free(font); | ||
16 | config_update_font_height(true); | 25 | config_update_font_height(true); |
17 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 26 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
18 | } | 27 | } |