<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: Direct formatting overwriting style in DOCX tables, wrong spacing"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118812#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: Direct formatting overwriting style in DOCX tables, wrong spacing"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118812">bug 118812</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>(In reply to NISZ LibreOffice Team from <a href="show_bug.cgi?id=118812#c16">comment #16</a>)
<span class="quote">> Seems like the 8 pt font size here is taken from the table style in Word
> (but not the font color), and from the paragraph style in Writer.</span >
Fontsize is very tricky with table styles, because of this compat setting:
---------------------------------------------------------------
2.3.1 overrideTableStyleFontSizeAndJustification
A compatSetting element whose name attribute has the value
"overrideTableStyleFontSizeAndJustification" and whose uri attribute has the
value "<a href="http://schemas.microsoft.com/office/word">http://schemas.microsoft.com/office/word</a>" specifies how the style
hierarchy of the document is evaluated.
If this value is true, then the style hierarchy of the document is evaluated as
specified in [ISO/IEC29500-1:2016] section 17.7.2.
If this value is false, which is the default, then the following additional
rules apply:
If the default paragraph style (as specified in [ISO/IEC29500-1:2016]
section 17.7.4.17) specifies a font size of 11pt or 12pt, then that setting
will not override the font size specified by the table style for paragraphs in
tables.
If the default paragraph style (as specified in [ISO/IEC29500-1:2016]
section 17.7.4.17) specifies a justification of left, then that setting will
not override the justification specified by the table style for paragraphs in
tables.
---------------------------------------------------------------
Things get very interesting if the table style itself does not specify a
fontsize, but a docDefault does. In that case, the tableStyle apparently picks
up the docDefault fontsize and seems to consider it part of the tableStyle
specifications. So in the compatible case:
1.) even though the tableStyle has no fontsize property, it ought to pick up
the docDefault size of 8.
2.) if the default style has a fontsize of 11 or 12, then the 8pt tableStyle
will win out (only in the compatible mode).
So it seems like we ought to merge the table style with docDefaults properties
before evaluating anything. In the non-compatible case, we would match or be
overridden by style properties. In the compatible case, we can override
left-justification or fontsize11/12.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>