[Libreoffice-bugs] [Bug 138797] Impress OTP file grows hugely embedding fonts

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 23 10:23:14 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138797

Gabriele Ponzo <gponzo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gponzo at gmail.com

--- Comment #6 from Gabriele Ponzo <gponzo at gmail.com> ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201223/606c7f5c/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list