As a Wikisource user, I want access to all system fonts, so I can have broader font support for more languages.
Background: At the moment, WESxport comes bundled with a bunch of fonts, which can be selected for inclusion in ebooks. There are a few reasons for moving to a different way of managing fonts: the included ones need to be periodically updated; they don't cover all languages; is bad practice to embed external resources in a project repository; and adding new fonts is annoying.
We should change to make it possible to use any font that's available on the host system. There are many of these, covering nearly all Wikisource languages. The current UI has a dropdown list of fonts that we recommend, also showing what languages they're good for. This should be moved into config.php, e.g.:
'fonts' => [ 'FreeSerif' => 'FreeSerif', 'Linux Libertine' => 'Linux Libertine', 'Libertinus' => 'Libertinus', 'Mukta' => 'Mukta (Devanagari)', 'Mukta Mahee' => 'Mukta Mahee (Gurmukhi)', 'Mukta Malar' => 'Mukta Malar (Tamil)', 'Lohit Kannada' => 'Lohit Kannada', ],
This will mean that any time we want to add a new font or change an existing one, it's a simple config change and doesn't require any code changes. Updates will also happen via the normal operating system mechanisms.
This task is a follow up to T254918: Wikisource Ebooks: Investigate Font rendering Issues [8Hours].
- Make it possible to use any installed fonts in ebooks
- Share list of fonts supported by this change, so Ilana & Satdeep can inform the community & they can test out the changes when ready