summaryrefslogtreecommitdiff
path: root/src/fontpack.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-17 11:15:14 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-17 11:15:14 +0300
commit2e2b823bfb5d34d42c6b6c1b289193c854459b45 (patch)
tree345f37aa1b84d8dedb98ff260265b41495e10878 /src/fontpack.h
parent2f3987f5e54d95658f95c6991b0644bc15eedabf (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.h10
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);
149void setStandalone_FontPack (iFontPack *, iBool standalone); 149void setStandalone_FontPack (iFontPack *, iBool standalone);
150void setLoadPath_FontPack (iFontPack *, const iString *path); 150void setLoadPath_FontPack (iFontPack *, const iString *path);
151iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); 151iBool loadArchive_FontPack (iFontPack *, const iArchive *zip);
152iBool detect_FontPack (const iBlock *data);
152 153
153iFontPackId id_FontPack (const iFontPack *); 154iFontPackId id_FontPack (const iFontPack *);
154const iPtrArray * listSpecs_FontPack (const iFontPack *); 155const iPtrArray * listSpecs_FontPack (const iFontPack *);
@@ -159,11 +160,18 @@ iDeclareType(GmDocument)
159void init_Fonts (const char *userDir); 160void init_Fonts (const char *userDir);
160void deinit_Fonts (void); 161void deinit_Fonts (void);
161 162
162const iFontPack * findPack_Fonts (const iString *path); 163const iFontPack * pack_Fonts (const char *packId);
164const iFontPack * packByPath_Fonts (const iString *path);
163const iFontSpec * findSpec_Fonts (const char *fontId); 165const iFontSpec * findSpec_Fonts (const char *fontId);
164const iPtrArray * listPacks_Fonts (void); 166const iPtrArray * listPacks_Fonts (void);
165const iPtrArray * listSpecs_Fonts (iBool (*filterFunc)(const iFontSpec *)); 167const iPtrArray * listSpecs_Fonts (iBool (*filterFunc)(const iFontSpec *));
166const iPtrArray * listSpecsByPriority_Fonts (void); 168const iPtrArray * listSpecsByPriority_Fonts (void);
167const iString * infoPage_Fonts (void); 169const iString * infoPage_Fonts (void);
170void install_Fonts (const iString *fontId, const iBlock *data);
171void reload_Fonts (void);
168 172
169iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc); 173iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc);
174
175iLocalDef iBool isInstalled_Fonts(const char *packId) {
176 return pack_Fonts(packId) != NULL;
177}