[Libreoffice-bugs] [Bug 124470] Table settings and borders are not saved if checked "Embed fonts" and "Only embed fonts that are used"

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 4 15:53:20 UTC 2020


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

--- Comment #15 from Mike Kaganski <mikekaganski at hotmail.com> ---
Citing myself from bug 127036 comment #1 (how could I forget answering to that
bug, that I myself filed this one):
> The problem is in XMLFontAutoStylePool::exportXML, which calls
> XMLFontAutoStylePool::getUsedFontList. The latter in turn calls
> SwXMLExport::collectAutoStyles, and that one indirectly writes the autostyle
> entries. It is used in SwXMLExport::ExportAutoStyles_ called from
> SvXMLExport::ImplExportAutoStyles, and there it is wrapped into
> XML_AUTOMATIC_STYLES element.
> 
> The resulting XML structure in content.xml is
> 
> > <office:document-content ...>
> >     ...
> >     <office:font-face-decls>
> >         <style:style style:name="Table1" style:family="table">
> >             <style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
> >         </style:style>
> >         <style:style style:name="Table1.A" style:family="table-column">
> >             <style:table-column-properties style:column-width="1.508cm"/>
> >         </style:style>
> >         ...
> >         <style:font-face style:name="Arial1" svg:font-family="Arial" style:font-family-generic="swiss"/>
> >         ...
> >     </office:font-face-decls>
> >     <office:automatic-styles/>
> >     ...
> where automatic styles, including those with table properties, are inside
> office:font-face-decls element, and the office:automatic-styles element is
> empty.
> 
> Adding Tomaž Vajngerl, the author of
> https://git.libreoffice.org/core/+/1a8435a23e84f3ceeee580eb9d4404a738d98888.
> Tomaž, the problem existed before the said patch (didn't try to check if
> that's a regression, or had it existed from the start of introducing the
> setting), but you are the expert here; do you have an idea how to fix this?
> 
> Note that this problem occurs even when fonts aren't embedded at all (i.e.,
> the top setting "Embed fonts in the document" in the dialog is unchecked) -
> so there's also likely performance problem, that some code unnecessarily
> runs when not needed.
> 
> Already reproducible with Version: 6.2.0.0.alpha0+
> Build ID: 68d3a44bc96041982cb38c140c0f9628dc8547c5
> CPU threads: 12; OS: Windows 10.0; UI render: GL; 
> Locale: ru-RU (ru_RU); Calc: group threaded

-- 
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/20200804/27be8c8f/attachment.htm>


More information about the Libreoffice-bugs mailing list