Bug 162997 - Support reloading of font list when new fonts added to the system (e.g. with fc-cache)
Summary: Support reloading of font list when new fonts added to the system (e.g. with ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts
  Show dependency treegraph
 
Reported: 2024-09-16 18:54 UTC by Eyal Rozenberg
Modified: 2024-09-17 07:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-09-16 18:54:37 UTC
Sometimes, you open a document, start working on it, and realize you want to use a font that's not installed right now - or that the document uses such a font, which you would like to install.

So, you go online, download that font somehow (or maybe use your package manager), and install it. On Windows, that's right-clicking the font file and choosing "Install"; on Linux, it's copying it somewhere fontconfig knows about, and running fc-cache -fv (as root? probably) . So, you've done that. Now you want to use that new font!

... sadly, your open LO session doesn't recognize it, since it loaded fonts at startup. It would be nice if it could:

* Note, or register to be notified, of a change to the set of cached fonts/typefaces.
* Reload its set of available fonts upon such notice
* Repaint/re-layout the document using the new set of available fonts
Comment 1 Eyal Rozenberg 2024-09-16 18:55:43 UTC
The alternative, of course, is shutting down LibreOffice - closing all currently open documents - and bringing it up again. Possible, but a bit annoying.

Also, if this is implemented, there should probably an opt-out preference somewhere.
Comment 2 Heiko Tietze 2024-09-17 07:28:52 UTC
Yes, it would be nice if relevant changes on the OS/DE are recognized and usable without a restart. But "nice to have" and therefore minor enhancement.