summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-04 14:54:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-04 14:54:02 +0300
commit137d5b32a4b8d29e9a9578a1fb47c673290647be (patch)
tree96b69b479aa6d14e88b0da5cfa664c7dfcddb634 /src/ui/labelwidget.c
parenteb1e613d1309c51e299888290766896a850e9171 (diff)
Changing the document content text size
The glyph cache is purged whenever font sizes change. UI fonts are deliberately not changed in size so that UI metrics don't have to be recomputed.
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index c246c0c4..0ec1c5f8 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -242,7 +242,7 @@ void updateSize_LabelWidget(iLabelWidget *d) {
242 242
243void init_LabelWidget(iLabelWidget *d, const char *label, int key, int kmods, const char *cmd) { 243void init_LabelWidget(iLabelWidget *d, const char *label, int key, int kmods, const char *cmd) {
244 init_Widget(&d->widget); 244 init_Widget(&d->widget);
245 d->font = default_FontId; 245 d->font = uiLabel_FontId;
246 initCStr_String(&d->label, label); 246 initCStr_String(&d->label, label);
247 if (cmd) { 247 if (cmd) {
248 initCStr_String(&d->command, cmd); 248 initCStr_String(&d->command, cmd);