Apache OpenOffice (AOO) Bugzilla – Issue 80866
font issue in content.xml and style.xml
Last modified: 2013-08-07 14:38:26 UTC
The fonts in the content.xml and the style.xml files do not "clean up" when they are not in use. If a document in produced in font a, then changed to font b, the xml files will have both font a and font b in them. This has been reproduced endless times, and is of great consequence when using open office to produce massive amounts of documents in an automated fasion. many fonts are only available by liscence and should not be appearing in the xml files if they are not in use by the associated document.
Reassigned to ES.
Not so nice... Let's say a cosmetic bug: Those fonts informationare needed by the undo function - a text with font A - save --> <style:font-face style:name="A"> in the content.xml - replace font A with font B - save --> <style:font-face style:name="A"> and <style:font-face style:name="B"> in the content.xml - close the document (the undo function is not needed anymore) - reload the document -> the reference to A should have disappeared but is still there - Workaround: save the file again -> then the undo information of the last session is cleaned up.
I dont know that i'd call it a cosmetic issue. We found the issue because our font validation software kicked errors out to us. We work around it by manually deleting from the xml files but as OOo gets more widely used I'd think that font validation would be commonly used. So while its not a killer for us (minor nuisance really) I think its a tad more than cosmetic.