To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=81714
------- Additional comments from [email protected] Mon Jan 11 16:25:33 +0000 2010 ------- OOo does not use the Bitstream font in the attached ODF file because: style.xml contains the following definition for the paragraph style "standard" (irrelevant parts omitted): <style:style style:name="Standard" style:family="paragraph"> <style:text-properties style:font-name="Bitstream Vera Sans"/> </style:style> But there is no declaration of a font face with name "Bitstream Vera Sans" in styles.xml; instead, this declaration is contained in content.xml: <office:font-face-decls> <style:font-face style:name="Bitstream Vera Sans" svg:font-family="Bitstream Vera Sans"/> </office:font-face-decls> The OOo ODF filter eagerly resolves font face declarations; i.e., when a style is read, any referenced font faces must already be read. This works because the office:font-face-decls element must precede office:styles (in the same file). An ODF package contains both a styles.xml and a content.xml. The idea behind this split is that styles that users have explicitly created and named are stored in the styles.xml stream, while styles that are automatic styles (i.e. created by the editing application from hard formatting) are stored in the content.xml. OOo has a feature where users can import the styles from one document into another. In this case, only the styles.xml of the ODF package is read, not the content.xml. Of course, this can only work if the styles.xml is actually self-contained, i.e., if it does not reference entities that are defined outside styles.xml. So i would argue that a styles.xml that is not self-contained is, while maybe not a violation of the letter of the ODF specification, certainly at odds with one of ODF's core design principles. Please also see the OASIS issue OFFICE-2086, where a clarification regarding the self-containedness of styles.xml has been added to ODF 1.2. http://tools.oasis-open.org/issues/browse/OFFICE-2086 Please file a bug report for the producing application. Because changing the OOo ODF import to lazily resolve font face declarations would likely be quite a bit of work, it is not likely that it will be changed to read such documents. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
