[Libreoffice-bugs] [Bug 65353] FILESAVE: LibreOffice embeds fonts defined in styles (e.g. CJK and CTL fonts) but arent used in the document

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 20 18:00:05 UTC 2021


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

--- Comment #47 from Brenton Chapin <bzipitidoo at gmail.com> ---
The font embedding is all over the place.  I've been using "embed fonts...",
"only embed fonts that are used...", and leaving all the font scripts options
unchecked, and it's a bit random what fonts are embedded.  Extra fonts are
embedded, and some fonts actually used are sometimes omitted.  I upgraded from
7.1.1.2 to 7.2.0.4, and that helped, but it's still wonky.  I am on Ubuntu
18.04.

I have a document that uses Arimo and Allegreya Sans (from fonts.google.com). 
The default font is Liberation Sans, however the document doesn't use that font
anywhere.  I added some text using yet another font, Ubuntu, then changed it to
Allegreya Sans.  There is nothing in Ubuntu font left in the document,
anywhere, as far as I can tell, but ever since I used it, Ubuntu is added to
the save file.  Liberation Sans may also end up in the save file.  Without
fonts, the file is 30k.  With embedded fonts, I have seen sizes of 800k, 1.7M,
2M, 2.1M, and 3M.

When Liberation Sans gets added back into the fonts LibreOffice decides to
embed, I can get rid of that one by saving the file without embedded fonts,
quitting LibreOffice, starting LibreOffice, loading the file without the
embedded fonts, turning on the embed fonts option, and saving.  That gets rid
of Liberation Sans, but Ubuntu is still in there.  If I make any edit at all,
then save again, Liberation Sans will be shoved in again.

I tried a direct approach of simply using an archiver (7-zip) to remove the
Ubuntu fonts from the odt file, but that corrupted it.

I also fiddled with the Paragraph Style: Default Paragraph Style, changing the
default font from Liberation Sans to Arimo.  That made it worse-- Arimo was
left out, and Liberation Sans put in.

One final note about embedding fonts:  it doesn't work for the text entry
fields of PDF forms either.  If you add a Text Box, set the font to something
custom, and export to PDF, the text entry field in the PDF form will not use
the font you chose, it will use the default font of Helvetica.

-- 
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/20210820/d71c7b7c/attachment.htm>


More information about the Libreoffice-bugs mailing list