diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-04 14:54:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-04 14:54:02 +0300 |
commit | 137d5b32a4b8d29e9a9578a1fb47c673290647be (patch) | |
tree | 96b69b479aa6d14e88b0da5cfa664c7dfcddb634 /src/app.c | |
parent | eb1e613d1309c51e299888290766896a850e9171 (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/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -405,6 +405,12 @@ iBool handleCommand_App(const char *cmd) { | |||
405 | delete_String(homePath); | 405 | delete_String(homePath); |
406 | return iTrue; | 406 | return iTrue; |
407 | } | 407 | } |
408 | else if (equal_Command(cmd, "font.setfactor")) { | ||
409 | setContentFontSize_Text((float) arg_Command(cmd) / 100.0f); | ||
410 | postCommand_App("font.changed"); | ||
411 | refresh_App(); | ||
412 | return iTrue; | ||
413 | } | ||
408 | else { | 414 | else { |
409 | return iFalse; | 415 | return iFalse; |
410 | } | 416 | } |