jasperreports icon indicating copy to clipboard operation
jasperreports copied to clipboard

Fixed linespacing size does not work as needed

Open savage1279 opened this issue 5 years ago • 0 comments

If I have a text field with a multi lined text inside.

<staticText>
  <reportElement x="0" y="0" width="198" height="252"/>
  <textElement textAlignment="Left" verticalAlignment="Top" markup="none">
    <font fontName="GostAproe" size="12"/>
    <paragraph lineSpacing="Fixed" lineSpacingSize="14.0"/>
  </textElement>
  <text><![CDATA[line 1
    line 2
    line 3
    ...
  ]]></text>
</staticText>

It renders a text line like 14.0 + maxDescent size

10-01-2017_23-48-26

An error is in AbstractTextRenderer.class. maxDescent value adds in any way not relative to the selected LineSpacing.

savage1279 avatar Oct 16 '20 13:10 savage1279