Lagrange [work/v1.8]

Media refactoring; working on FontPack management

=> Jaakko Keränen

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

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.8/commits/960df03c17091aca37f53eaab8fc27c669d26a5e
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
76.284314 milliseconds
Gemini-to-HTML Time
0.528505 milliseconds

This content has been proxied by September (ba2dc).