Jump to content
We've recently updated our Privacy Statement, available here ×

Subscript tag problem


_freeman_

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
  • 2 years later...
  • 9 months later...
  • 1 year later...

Ok, I've continued digging the source code and I've founded that the problem occure when jrprint is drawing to the Image, but only with specific fonts. 

For example, if you use DejaVu Serif, DejaVu Sans .. but everything is ok when I use font FreeSans. 

Maybe somone can confirm that this is a bug .. class is JRPrinterAWT.java, method: printPageToImage.

Jasperreport  version is 6.3.0, jrxml for testing this:

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="rptZahtev" pageWidth="595" pageHeight="842" columnWidth="538" leftMargin="20" rightMargin="37" topMargin="21" bottomMargin="10" uuid="bd88b67f-8665-4395-b673-cfb74d86ad0a">
<property name="ireport.zoom" value="1.2100000000000124"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="505"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="144" splitType="Stretch">
<staticText>
<reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="0" width="221" height="72"/>
<box topPadding="2" leftPadding="2">
<pen lineWidth="1.5"/>
<topPen lineWidth="1.5"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.5"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="DejaVu Serif" size="12" isUnderline="true" isPdfEmbedded="true"/>
</textElement>
<text><![CDATA[TEXT <sub>subscript</sub> TEXT]]></text>
</staticText>
<staticText>
<reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="72" width="221" height="72"/>
<box topPadding="2" leftPadding="2">
<pen lineWidth="1.5"/>
<topPen lineWidth="1.5"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.5"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="FreeSerif" size="12" isUnderline="true" isPdfEmbedded="true"/>
</textElement>
<text><![CDATA[ TEXT <sub>subscript</sub> TEXT ]]></text>
</staticText>
</band>
</title>
</jasperReport>
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...