Fonts are only embedded if they are used in direct formatting. If a document is formatted only using styles, no fonts are embedded, even if they are used in the applied styles.
When switching the font of the one and only paragraph in the test document and saving, the used font is embedded. When switching back to the font used before, it's also embedded.
Workaround: So if using only styles for formatting, all the needed fonts currently must be used once in the document by direct formatting, even if it's only for whitespace.
Steps to Reproduce:
- Open LibreOffice Writer - unsaved document "Untitled 1" will be open.
- Open menu File -> Properties...
- In dialog "Properties of "Untitled 1" switch to tab "Font".
- Tick both checkboxes of "Font Embedding" and untick the three checkboxes of "Font scripts to embed".
- Close dialog with "OK".
- Type test into first line of document. For me, default font is Liberation Serif.
- Save document in home directory with name test.odt.
- View contents of zip test.odt.
No directory Fonts present in zip test.odt meaning no embedded fonts.
Directory Fonts present in zip test.odt meaning fonts have been embedded.
User Profile Reset: No
See also bug 83675.
I confirm it with
Version: 22.214.171.124 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Tested with font "Liberation Serif".