From b3ae7efcb9adb1de3d02f0753e2a79888bdb71ac Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 17 Oct 2021 20:33:14 +0300 Subject: FontPack management via "about:fonts" --- src/fontpack.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/fontpack.h') 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 { void setReadOnly_FontPack (iFontPack *, iBool readOnly); void setStandalone_FontPack (iFontPack *, iBool standalone); void setLoadPath_FontPack (iFontPack *, const iString *path); +void setUrl_FontPack (iFontPack *, const iString *url); iBool loadArchive_FontPack (iFontPack *, const iArchive *zip); iBool detect_FontPack (const iBlock *data); iFontPackId id_FontPack (const iFontPack *); -const iPtrArray * listSpecs_FontPack (const iFontPack *); +const iString * loadPath_FontPack (const iFontPack *); /* may return NULL */ +iBool isDisabled_FontPack (const iFontPack *); iBool isReadOnly_FontPack (const iFontPack *); +const iPtrArray * listSpecs_FontPack (const iFontPack *); +iString * infoText_FontPack (const iFontPack *); +const iArray * actions_FontPack (const iFontPack *); + +const iString * idFromUrl_FontPack (const iString *url); + +/*----------------------------------------------------------------------------------------------*/ iDeclareType(GmDocument) @@ -170,8 +179,6 @@ const iString * infoPage_Fonts (void); void install_Fonts (const iString *fontId, const iBlock *data); void reload_Fonts (void); -iBool preloadLocalFontpackForPreview_Fonts (iGmDocument *doc); - iLocalDef iBool isInstalled_Fonts(const char *packId) { return pack_Fonts(packId) != NULL; } -- cgit v1.2.3