Description: A template passes from 11KB to more than 36MB just selecting the font embedding option. Does LO embed ALL the system's fonts? I'm not sure it is a bug :) Steps to Reproduce: 1. Open Impress (choosing a blank template if asked) 2. Write some dummy text and Save the file 3. Go to Menu "File -> Properties", Tab "Font" 4. Check "Embed fonts in the document" and click "OK" 5. Save the file with a different name 6. Open the folder and compare sizes Actual Results: In my PC file size passes from 11.4KB to 36.4MB Expected Results: I'd expect a grow comparable to the size of all fonts "mentioned" in the file, even if not used. Something less than 1MB in this case. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.6.2 Build ID: 1:6.4.6-0ubuntu0.20.04.1 CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: it-IT (it_IT.UTF-8); UI-Language: en-GB Calc: threaded
I think it's the same root cause that tdf#137247 see also https://bugs.documentfoundation.org/show_bug.cgi?id=137247#c2 The pb is once you begin to enable this option it will keep on growing at each saving. Mike: any thoughts here or any idea who may help here?
(In reply to Julien Nabet from comment #1) > Mike: any thoughts here or any idea who may help here? In Writer, unchecking this gives the expected result. I would start with debugging the difference; maybe the m_bTryToEmbedFonts gets "true" somehow when the option is unchecked in the form? maybe the properties do not modify the correct setting (e.g., affect an embedded document instead of main ODB)?
Thank you Mike for your feedback. With Writer, no pb at all indeed. With Impress, when looping with embedded fonts enabled->embedded fonts disabled->embedded fonts enabled, it takes 1 or 2 bytes each time so there's a pb but not as much as tdf#137247, I'm gonna compare.
Gabriele: re reading your bugs, I think it's perhaps not a bug. On pc Debian x86-64 with LO Debian package 7.0.3.1, an Impress file containing just "Hello" is 12kB with fonts embedded, it's 3.7mB With just "Used fonts only",it's 3mB On Win10 with LO 6.4.7 and no specific fonts a file which just contains "Hello" is 12kB with fonts embedded, it's 815kB, idem with "Used fonts only". In both cases, I used by default template. I don't know how LO chooses the fonts to use and I suppose it depends on if you install specific fonts on your system but you can check "Only embed fonts that are used in documents". About the tests, I had made after increasing of 1 byte after some saves, at a moment, it goes down again.
It seems ok here so since I can't help more here=>uncc myself.
(In reply to Julien Nabet from comment #4) > Gabriele: re reading your bugs, I think it's perhaps not a bug. > > On pc Debian x86-64 with LO Debian package 7.0.3.1, an Impress file > containing just "Hello" is 12kB with fonts embedded, it's 3.7mB > With just "Used fonts only",it's 3mB > > On Win10 with LO 6.4.7 and no specific fonts a file which just contains > "Hello" is 12kB with fonts embedded, it's 815kB, idem with "Used fonts only". > > In both cases, I used by default template. > > I don't know how LO chooses the fonts to use and I suppose it depends on if > you install specific fonts on your system but you can check "Only embed > fonts that are used in documents". > > > About the tests, I had made after increasing of 1 byte after some saves, at > a moment, it goes down again. Well, I did some further test too. I created (again) a imple file with just "hello" and saved in 3 ways and then I uncompressed them to see what was inside: 1. regular: no Fonts folder 2. embed fonts: a Fonts folder is present as follows 740K Font_DejaVu_Sans_1.ttf 690K Font_DejaVu_Sans_2.ttf 822K Font_FreeSans_1.ttf 449K Font_FreeSans_2.ttf 400K Font_Liberation_Sans_1.ttf 403K Font_Liberation_Sans_2.ttf 404K Font_Liberation_Sans_3.ttf 398K Font_Liberation_Sans_4.ttf 381K Font_Liberation_Serif_1.ttf 358K Font_Liberation_Serif_2.ttf 364K Font_Liberation_Serif_3.ttf 364K Font_Liberation_Serif_4.ttf 20M Font_Noto_Sans_CJK_SC_1.ttf <-- THIS FONT IS 20M!!! 20M Font_Noto_Sans_CJK_SC_2.ttf <-- THIS FONT IS 20M!!! So the mystery is explained in those 2 fonts 3. embed just used fonts: NO FONTS FOLDER! Nor any ttf in the whole branch. And this is a(nother) bug, since it should include at least one font (Liberation Sans in my case). So the point is: probably the behaviour of embed-all is correct, but I don't know if it worths a consideration about the possibility to add another (nested) option such as "exclude CJK fonts"... About the emed-just-used not working please tell me if I should file another bug.
First file - 11 kb Second file - 36,7 MB Tested with Version: 7.0.4.2 Build ID: dcf040e67528d9187c66b2379df5ea4407429775 CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded The same tested with Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 4e1294b7d6f8de981147f15d4ca1b4e4853249eb CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Dear Gabriele Ponzo, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
In the dbg version, I'm getting these messages: warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:legacy.osl:201398:201398:sd/source/core/stlsheet.cxx:1184: SvxShape::GetAnyForItem() Returnvalue has wrong Type! warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 11 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 11 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 11 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 11 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 13 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 12 warn:editeng:201398:201398:editeng/source/uno/unofield.cxx:375: Id service unknown: 2 warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family graphic with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper warn:xmloff:201398:201398:xmloff/source/style/impastpl.cxx:379: Adding duplicate family presentation with mismatching mapper ! P25SvXMLExportPropertyMapper 28XMLShapeExportPropertyMapper Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 24c9373409dda957ad6e1f1b4e3ec6c7135ecf1a CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded