Bug 142898 - Roundtrip DOCX: file size increase from 430 KB to 5500 because of font embedding
Summary: Roundtrip DOCX: file size increase from 430 KB to 5500 because of font embedding
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 156711 (view as bug list)
Depends on:
Blocks: DOCX Fonts-Embedded
  Show dependency treegraph
 
Reported: 2021-06-16 12:15 UTC by Telesto
Modified: 2023-08-18 15:23 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Font embedding settings of the example file in Word and Writer (123.58 KB, image/png)
2021-06-17 09:39 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-06-16 12:15:46 UTC
Description:
Roundtrip DOCX: file size increase from 430 KB to 5500 because of font embedding

Steps to Reproduce:
1. Open attachment 150593 [details] (bug 124600)
2. Save as DOCX -> look at file size

Actual Results:
5500kb

Expected Results:
430kb or something like that


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 239b4bb27fd8db26e8416045b3015688a8b1b0ae
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-06-16 12:22:35 UTC
Also in
6.1

and in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and in
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

slightly less in (3500KB)
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

embedded fonts thrown out in
4.0
Comment 2 NISZ LibreOffice Team 2021-06-17 09:30:55 UTC
I see this happening, file size goes from 400 kB to almost 6 mB for me.

Very similar as old bug #65353 (although that's for ODF).

The example file has the "Embed fonts in the file" Word option enabled and imported.
It also has the
Comment 3 NISZ LibreOffice Team 2021-06-17 09:38:32 UTC
... Only embed characters used in the document (in order to save space) option enabled, which is NOT imported correctly.
Writer has a similar option, but enabling it manually does not impact the file size upon saving.
However disabling that in Word does increase the file size to ~6 mB upon saving.

Also has the "Skip embedding of fonts used by the system" option enabled for which there is no similar option in Writer. 
But disabling that does not seem to have any impact on file size after saving in Word.
Comment 4 NISZ LibreOffice Team 2021-06-17 09:39:10 UTC
Created attachment 172967 [details]
Font embedding settings of the example file in Word and Writer
Comment 5 QA Administrators 2023-06-18 03:14:31 UTC Comment hidden (obsolete)
Comment 6 Gabor Kelemen (allotropia) 2023-08-10 11:56:58 UTC
*** Bug 156711 has been marked as a duplicate of this bug. ***