Bug 149225 - Fonts added to Mac OS system are not available in LibreOffice, even after restart
Summary: Fonts added to Mac OS system are not available in LibreOffice, even after res...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.1.3 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-21 21:39 UTC by stokestack
Modified: 2023-03-24 20:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The font that demonstrated the bug on my system (200.37 KB, application/zip)
2022-05-21 21:40 UTC, stokestack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stokestack 2022-05-21 21:39:09 UTC
Description:
After adding a font to my system, it was not immediately available in Writer. So I quit and restarted Writer. The font was still missing from the font drop-down list. I launched a couple of other applications on my system and confirmed that the font was available.

After hunting around for a preference or explanation in Writer, I opened my document in Pages (which showed the newly added font) and completed it over the next 45 minutes or so. After quitting Pages and returning to Writer, I found that the font had mysteriously become available.

Steps to Reproduce:
1.Open a document in Writer that calls for a font not on your system. In my case, it was Century Gothic (attached to this report).
2.Install the attached font by selecting its files in Finder, selecting Open, and installing from the Mac font preview.
3.Look for Century Gothic in the font drop-down in the Writer toolbar. Close Writer, re-open the document, and look again.

Actual Results:
The font was not shown in the font list, even after restarting Writer. Almost an hour later, I had completed my document in another application; finding that I had left Writer open, I checked for the font in it again and found that it was now available.

Expected Results:
The font is available in the font drop-down after restarting the app, if not immediately after adding it.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.1.3 / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 10; OS: Mac OS X 12.3.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 stokestack 2022-05-21 21:40:49 UTC
Created attachment 180289 [details]
The font that demonstrated the bug on my system
Comment 2 Alex Thurgood 2022-05-27 08:12:07 UTC
Sounds like font cache refresh issue. Perhaps, the LO font cache refresh is only done lazily to improve performance ? 

Theoretically, it was my understanding that it was supposed to refresh on application shutdown and restart though.

Not an expert here, so would need a dev to comment.
Comment 3 stokestack 2022-05-27 22:46:31 UTC
Yep, I wouldn't have filed this if restarting the app had caused the font to show up, since this is pretty common among applications I've used.

The time delay is interesting. I wonder what was going on in the interim.
Comment 4 eisa01 2023-03-24 20:19:59 UTC
Downloaded Roboto from google fonts and that showed up after a restart

Pages picked it up immediately without a restart

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 10; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded