Why is style ignored in XLSX when using markup?
<p>I am using bold style for part of the text, so it looks like:</p>

<pre><code>"&lt;style isBold = 'true'&gt;" + $P{REPORT_RESOURCE_BUNDLE}.getString("report.label.foo") +": "+"&lt;/style&gt;"+$F{foo}
</code></pre>

<p>in jrxml this <code>textField</code> looks like:</p>

<pre><code>&lt;textField&gt;
&lt;reportElement style="moduleBorderColumnStyle" mode="Opaque" x="0" y="0" width="555" height="20" uuid="6adbbfa7-e549-4378-903c-04095c2f34c4"/&gt;
&lt;textElement markup="styled"/&gt;
&lt;textFieldExpression&gt;&lt;![CDATA["&lt;style isBold = 'true'&gt;" +
$P{REPORT_RESOURCE_BUNDLE}
.getString("report.label.foo")
+": "+"&lt;/style&gt;"+$F{foo}]]&gt;&lt;/textFieldExpression&gt;
&lt;/textField&gt;
</code></pre>

<p><strong>TextField Markup property - styled</strong></p>

<p>It works perfect for PDF and HTML. However, I have problems with using same for <strong>XLSX</strong>. </p>

<p>Unfortunately, even after setting directly font size to 14 (I've tried to set it from style before) I am getting font  <strong>11 callibri</strong> (It's default font) for whole label, which is using tag <code>&lt;style isBold='true'&gt;</code>.</p>

<p>I've tried the same with <code>&lt;b&gt; text &lt;/b&gt;</code> and markup = HTML - result did not changed.</p>

<p><strong>Conclusion: Any styled text in XLSX is insensitive for fonts (sets it to default), how can this be resolved?</strong></p>

<p><strong>EDIT:</strong></p>

<p>I found that the problem is in style which I am applying for this <code>textField</code> before, however still problem is just in excel. The <code>&lt;style&gt;</code> tag just overwrites it to default font and font size.</p>