summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 07:57:30 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 07:57:30 +0300
commit57cbcc6e864abd368bde93154b3580147936201c (patch)
tree157ecbb534f85d83ef39dcb68850e42d7cce6580 /src/app.c
parent5b8c606183df3054c4691f89c97e346786947914 (diff)
Installing individual TTF files; generate fontpack.ini
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/app.c b/src/app.c
index 485c2495..46856e22 100644
--- a/src/app.c
+++ b/src/app.c
@@ -836,6 +836,7 @@ static void init_App_(iApp *d, int argc, char **argv) {
836 loadPalette_Color(dataDir_App_()); 836 loadPalette_Color(dataDir_App_());
837 setThemePalette_Color(d->prefs.theme); /* default UI colors */ 837 setThemePalette_Color(d->prefs.theme); /* default UI colors */
838 loadPrefs_App_(d); 838 loadPrefs_App_(d);
839 updateActive_Fonts();
839 load_Keys(dataDir_App_()); 840 load_Keys(dataDir_App_());
840 /* See if the user wants to override the window size. */ { 841 /* See if the user wants to override the window size. */ {
841 iCommandLineArg *arg = iClob(checkArgument_CommandLine(&d->args, windowWidth_CommandLineOption)); 842 iCommandLineArg *arg = iClob(checkArgument_CommandLine(&d->args, windowWidth_CommandLineOption));
@@ -3069,13 +3070,7 @@ iBool handleCommand_App(const char *cmd) {
3069 } 3070 }
3070 else if (equal_Command(cmd, "fontpack.enable")) { 3071 else if (equal_Command(cmd, "fontpack.enable")) {
3071 const iString *packId = collect_String(suffix_Command(cmd, "id")); 3072 const iString *packId = collect_String(suffix_Command(cmd, "id"));
3072 if (arg_Command(cmd)) { 3073 enablePack_Fonts(packId, arg_Command(cmd));
3073 remove_StringSet(d->prefs.disabledFontPacks, packId);
3074 }
3075 else {
3076 insert_StringSet(d->prefs.disabledFontPacks, packId);
3077 }
3078 resetFonts_App();
3079 postCommand_App("navigate.reload"); 3074 postCommand_App("navigate.reload");
3080 return iTrue; 3075 return iTrue;
3081 } 3076 }