Mon Oct 11 12:22:54 2021 +0300
Media still needs more work to get rid of redundancies and make lookups faster.
FontPacks are manipulated as Media items (not unlike images) so they can be previewed on page, and installed via a click.
FontPack management is not trivial as it includes such details as versioning and whether individual packs are enabled or disabled.
res/arabic.fontpack/fontpack.ini | 2 + res/cjk.fontpack/fontpack.ini | 2 + res/default.fontpack/fontpack.ini | 2 + res/firasans.fontpack/fontpack.ini | 2 + res/literata.fontpack/fontpack.ini | 2 + res/nunito.fontpack/fontpack.ini | 2 + res/tinos.fontpack/fontpack.ini | 2 + src/app.c | 1 + src/defs.h | 4 +- src/fontpack.c | 299 +++++++++++++++++++------- src/fontpack.h | 65 ++++-- src/gempub.c | 2 +- src/gmdocument.c | 159 +++++++------- src/gmdocument.h | 16 +- src/gmrequest.c | 9 +- src/gmutil.c | 8 +- src/media.c | 349 ++++++++++++++++++++---------- src/media.h | 92 ++++++-- src/ui/documentwidget.c | 429 +++++++++++++++++++++---------------- src/ui/documentwidget.h | 2 + src/ui/mediaui.c | 88 +++++++- src/ui/mediaui.h | 20 +- 22 files changed, 1030 insertions(+), 527 deletions(-)
=> Diff (Colored) | Diff (Colored, Plain Text) | 🔨 Patch
=> Parent bf9158b2 | Repository This content has been proxied by September (ba2dc).Proxy Information
text/gemini; charset=utf-8