[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
Wed Nov 8 11:26:17 UTC 2017


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

--- Comment #26 from James <jimux at talktalk.net> ---
As an author I often have documents of 400 plus pages, and as they evolve some
have attracted numerous font references, resulting in very large files with a
number of unwanted embedded fonts. I work in Linux and my manual solution is
thus.

Save the document as odt with the embed fonts button unchecked
Change file suffix to zip
open with archive.
examine the file styles.xml
for each unwanted " <style:font-face style:name="..." line at the top of the
file do a global search & replace substituting the name of a required font as
shown in the list.
remove duplicate " <style:font-face style:name="... " lines created.
save
change the suffix back to odt
Load in Libreoffice, check embed fonts and save.

You now have a smaller file without the unwanted fonts.
This is a dirty solution and probably leaves a lot of redundant tags in the
file, but it works. 

An automated process based on this would be a fair solution.

-- 
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/20171108/2a3642c9/attachment.html>


More information about the Libreoffice-bugs mailing list