diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 11:15:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 11:15:14 +0300 |
commit | 2e2b823bfb5d34d42c6b6c1b289193c854459b45 (patch) | |
tree | 345f37aa1b84d8dedb98ff260265b41495e10878 /src/prefs.c | |
parent | 2f3987f5e54d95658f95c6991b0644bc15eedabf (diff) |
Media and FontPacks (work in progress)
Saving this as the last point of progress. This direction is too complicated: Media needs to be a lot more sophisticated to allow dynamic and interactive media at the level of FontPacks. (A bit like Player handles audio playback.)
This will be reverted. FontPack management will happen using an another method.
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index 673470d6..523ec649 100644 --- a/src/prefs.c +++ b/src/prefs.c | |||
@@ -60,6 +60,7 @@ void init_Prefs(iPrefs *d) { | |||
60 | setCStr_String(&d->strings[bodyFont_PrefsString], "default"); | 60 | setCStr_String(&d->strings[bodyFont_PrefsString], "default"); |
61 | setCStr_String(&d->strings[monospaceFont_PrefsString], "iosevka"); | 61 | setCStr_String(&d->strings[monospaceFont_PrefsString], "iosevka"); |
62 | setCStr_String(&d->strings[monospaceDocumentFont_PrefsString], "iosevka-body"); | 62 | setCStr_String(&d->strings[monospaceDocumentFont_PrefsString], "iosevka-body"); |
63 | d->disabledFontPacks = new_StringSet(); | ||
63 | d->fontSmoothing = iTrue; | 64 | d->fontSmoothing = iTrue; |
64 | d->gemtextAnsiEscapes = iFalse; | 65 | d->gemtextAnsiEscapes = iFalse; |
65 | d->monospaceGemini = iFalse; | 66 | d->monospaceGemini = iFalse; |
@@ -88,6 +89,7 @@ void init_Prefs(iPrefs *d) { | |||
88 | } | 89 | } |
89 | 90 | ||
90 | void deinit_Prefs(iPrefs *d) { | 91 | void deinit_Prefs(iPrefs *d) { |
92 | iRelease(d->disabledFontPacks); | ||
91 | iForIndices(i, d->strings) { | 93 | iForIndices(i, d->strings) { |
92 | deinit_String(&d->strings[i]); | 94 | deinit_String(&d->strings[i]); |
93 | } | 95 | } |