Bug 149348 - Fonts used in applied styles not embedded even if enabled in file properties
Summary: Fonts used in applied styles not embedded even if enabled in file properties
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts-Embedded
  Show dependency treegraph
 
Reported: 2022-05-28 17:46 UTC by libreuser
Modified: 2023-11-29 11:52 UTC (History)
2 users (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 libreuser 2022-05-28 17:46:39 UTC
Description:
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.

Actual Results:
No directory Fonts present in zip test.odt meaning no embedded fonts.

Expected Results:
Directory Fonts present in zip test.odt meaning fonts have been embedded.


Reproducible: Always


User Profile Reset: No



Additional Info:
-
Comment 1 libreuser 2022-05-28 19:42:45 UTC
See also bug 83675.
Comment 2 Dieter 2022-06-12 08:08:22 UTC
I confirm it with

Version: 7.3.4.2 (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
Calc: CL

Tested with font "Liberation Serif".
Comment 3 Timur 2023-11-29 11:52:30 UTC
Does not seem like a bug to me. 
> - Tick both checkboxes of "Font Embedding" and untick the three checkboxes of "Font scripts to embed".
If you untick all 3, makes sense that fonts are not embedded. 
They are if Latin is ticked.