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/fontpack.h | |
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/fontpack.h')
-rw-r--r-- | src/fontpack.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fontpack.h b/src/fontpack.h index f69e2adc..2fdfa9ab 100644 --- a/src/fontpack.h +++ b/src/fontpack.h | |||
@@ -149,6 +149,7 @@ void setReadOnly_FontPack (iFontPack *, iBool readOnly); | |||
149 | void setStandalone_FontPack (iFontPack *, iBool standalone); | 149 | void setStandalone_FontPack (iFontPack *, iBool standalone); |
150 | void setLoadPath_FontPack (iFontPack *, const iString *path); | 150 | void setLoadPath_FontPack (iFontPack *, const iString *path); |
151 | iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); | 151 | iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); |
152 | iBool detect_FontPack (const iBlock *data); | ||
152 | 153 | ||
153 | iFontPackId id_FontPack (const iFontPack *); | 154 | iFontPackId id_FontPack (const iFontPack *); |
154 | const iPtrArray * listSpecs_FontPack (const iFontPack *); | 155 | const iPtrArray * listSpecs_FontPack (const iFontPack *); |
@@ -159,11 +160,18 @@ iDeclareType(GmDocument) | |||
159 | void init_Fonts (const char *userDir); | 160 | void init_Fonts (const char *userDir); |
160 | void deinit_Fonts (void); | 161 | void deinit_Fonts (void); |
161 | 162 | ||
162 | const iFontPack * findPack_Fonts (const iString *path); | 163 | const iFontPack * pack_Fonts (const char *packId); |
164 | const iFontPack * packByPath_Fonts (const iString *path); | ||
163 | const iFontSpec * findSpec_Fonts (const char *fontId); | 165 | const iFontSpec * findSpec_Fonts (const char *fontId); |
164 | const iPtrArray * listPacks_Fonts (void); | 166 | const iPtrArray * listPacks_Fonts (void); |
165 | const iPtrArray * listSpecs_Fonts (iBool (*filterFunc)(const iFontSpec *)); | 167 | const iPtrArray * listSpecs_Fonts (iBool (*filterFunc)(const iFontSpec *)); |
166 | const iPtrArray * listSpecsByPriority_Fonts (void); | 168 | const iPtrArray * listSpecsByPriority_Fonts (void); |
167 | const iString * infoPage_Fonts (void); | 169 | const iString * infoPage_Fonts (void); |
170 | void install_Fonts (const iString *fontId, const iBlock *data); | ||
171 | void reload_Fonts (void); | ||
168 | 172 | ||
169 | iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc); | 173 | iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc); |
174 | |||
175 | iLocalDef iBool isInstalled_Fonts(const char *packId) { | ||
176 | return pack_Fonts(packId) != NULL; | ||
177 | } | ||