From 52b6013cc01e17f4b500ea79fb786ccc14b1f7ec Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 8 Oct 2021 15:27:14 +0300 Subject: Font configuration; Prefs has a string value array Added a second version of Iosevka with more line spacing, to be used as the default monospace document font. --- src/ui/labelwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/labelwidget.c') diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index cfc81863..9713e1f2 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c @@ -384,7 +384,7 @@ static void draw_LabelWidget_(const iLabelWidget *d) { } else if (flags & alignLeft_WidgetFlag) { draw_Text(d->font, add_I2(bounds.pos, addX_I2(padding_LabelWidget_(d, 0), iconPad)), - fg, cstr_String(&d->label)); + fg, "%s", cstr_String(&d->label)); if ((flags & drawKey_WidgetFlag) && d->key) { iString str; init_String(&str); @@ -399,6 +399,7 @@ static void draw_LabelWidget_(const iLabelWidget *d) { : colorEscape != none_ColorId ? colorEscape : uiTextShortcut_ColorId,*/ right_Alignment, + "%s", cstr_String(&str)); deinit_String(&str); } @@ -409,6 +410,7 @@ static void draw_LabelWidget_(const iLabelWidget *d) { add_I2(topRight_Rect(bounds), negX_I2(padding_LabelWidget_(d, 1))), fg, right_Alignment, + "%s", cstr_String(&d->label)); } else { -- cgit v1.2.3