diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 20:33:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-17 20:33:14 +0300 |
commit | b3ae7efcb9adb1de3d02f0753e2a79888bdb71ac (patch) | |
tree | 57fb9f82f2d19a1c8e6d1aa85865f9df210e2c4b /src/fontpack.h | |
parent | 2e2b823bfb5d34d42c6b6c1b289193c854459b45 (diff) |
FontPack management via "about:fonts"
Diffstat (limited to 'src/fontpack.h')
-rw-r--r-- | src/fontpack.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/fontpack.h b/src/fontpack.h index 2fdfa9ab..fb8d757e 100644 --- a/src/fontpack.h +++ b/src/fontpack.h | |||
@@ -148,12 +148,21 @@ struct Impl_FontPackId { | |||
148 | void setReadOnly_FontPack (iFontPack *, iBool readOnly); | 148 | 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 | void setUrl_FontPack (iFontPack *, const iString *url); | ||
151 | iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); | 152 | iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); |
152 | iBool detect_FontPack (const iBlock *data); | 153 | iBool detect_FontPack (const iBlock *data); |
153 | 154 | ||
154 | iFontPackId id_FontPack (const iFontPack *); | 155 | iFontPackId id_FontPack (const iFontPack *); |
155 | const iPtrArray * listSpecs_FontPack (const iFontPack *); | 156 | const iString * loadPath_FontPack (const iFontPack *); /* may return NULL */ |
157 | iBool isDisabled_FontPack (const iFontPack *); | ||
156 | iBool isReadOnly_FontPack (const iFontPack *); | 158 | iBool isReadOnly_FontPack (const iFontPack *); |
159 | const iPtrArray * listSpecs_FontPack (const iFontPack *); | ||
160 | iString * infoText_FontPack (const iFontPack *); | ||
161 | const iArray * actions_FontPack (const iFontPack *); | ||
162 | |||
163 | const iString * idFromUrl_FontPack (const iString *url); | ||
164 | |||
165 | /*----------------------------------------------------------------------------------------------*/ | ||
157 | 166 | ||
158 | iDeclareType(GmDocument) | 167 | iDeclareType(GmDocument) |
159 | 168 | ||
@@ -170,8 +179,6 @@ const iString * infoPage_Fonts (void); | |||
170 | void install_Fonts (const iString *fontId, const iBlock *data); | 179 | void install_Fonts (const iString *fontId, const iBlock *data); |
171 | void reload_Fonts (void); | 180 | void reload_Fonts (void); |
172 | 181 | ||
173 | iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc); | ||
174 | |||
175 | iLocalDef iBool isInstalled_Fonts(const char *packId) { | 182 | iLocalDef iBool isInstalled_Fonts(const char *packId) { |
176 | return pack_Fonts(packId) != NULL; | 183 | return pack_Fonts(packId) != NULL; |
177 | } | 184 | } |