libreoffice-online/kit
Tor Lillqvist f98900c73c Add a remote font download feature
The coolwsd.xml file can now contain a URI of a JSON file on some
server that contains URIs of fonts. These fonts are downloaded to the
coolwsd server. Just like the remote configuration thing, the URIs are
checked once a minute and the JSON or the fonts mentioned in it are
re-downloaded if their contents has changed.

If a font has been removed from the JSON file then the corresponding
downloaded could be removed, too. But there is no way to remove it
from core without restarting the whole COOL server, so we don't
bother.

We need to put the font in such a place so that its pathname is the
same both in the ForKit process (outside any chroot jail) and in a Kit
process (inside its own jail(), because even if it is in the ForKit
process that we call the LO core vcl API to load a "temporary" font,
code elsewhere in LO core re-opens the font file later, naturally
using the same pathname, when it is needed (see
FreetypeFontFile::Map() in vcl/unx/generic/glyphs/freetype_glyphcache.cxx).

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: If78058ddff5ed05c7a82d7ea465a7a414fd0d861
2022-04-15 17:32:41 +03:00
..
ChildSession.cpp wsd: move tokenizer helpers into StringVector 2022-04-12 07:39:07 -04:00
ChildSession.hpp Remove unused parameters in ChildSession 2022-02-28 07:13:11 -05:00
Delta.hpp
DummyLibreOfficeKit.cpp
DummyLibreOfficeKit.hpp
ForKit.cpp Add a remote font download feature 2022-04-15 17:32:41 +03:00
Kit.cpp Add a remote font download feature 2022-04-15 17:32:41 +03:00
Kit.hpp Add a remote font download feature 2022-04-15 17:32:41 +03:00
KitHelper.hpp fixed master slide previews not being updated 2022-02-04 01:16:13 +05:30
SetupKitEnvironment.hpp rename: remaining lool->cool changes 2021-11-18 14:14:11 +01:00
TestStubs.cpp
Watermark.hpp