_freeman_ Posted April 3, 2012 Share Posted April 3, 2012 Hello,I have problem with styled static text,<font size="9">ONE <sub>TWO</sub> THREE</font>Result I have is:ONE two THREEWhat am I doing wrong?Post Edited by lazar at 04/03/2012 22:54 Link to comment Share on other sites More sharing options...
_freeman_ Posted April 4, 2012 Author Share Posted April 4, 2012 Does anyone have some sugestion? Link to comment Share on other sites More sharing options...
_freeman_ Posted April 4, 2012 Author Share Posted April 4, 2012 Ok .. can someone of admins confirm that this is a bug?JasperReport version: 4.1.3 Link to comment Share on other sites More sharing options...
_freeman_ Posted April 4, 2012 Author Share Posted April 4, 2012 ... same results with version 4.5.1 Link to comment Share on other sites More sharing options...
_freeman_ Posted April 24, 2012 Author Share Posted April 24, 2012 C'mon jasper gurus .. this is simple question .. is this a jasper bug, or developer bug? Link to comment Share on other sites More sharing options...
_freeman_ Posted October 6, 2014 Author Share Posted October 6, 2014 This is still happening, I tested with iReport-5.6.0. Normal <sub>subscript</sub> normalNormal subscript normalAny workaround for this? Link to comment Share on other sites More sharing options...
wisoo123 Posted July 8, 2015 Share Posted July 8, 2015 I have the same problem with Jaspersoft Studio 6.1.Does anybody have a workaround for this, or an explanation why this occurs and if it ever will be fixed? Link to comment Share on other sites More sharing options...
_freeman_ Posted September 29, 2016 Author Share Posted September 29, 2016 I still have this problem with latest jaseprreport libraries 6.3.0. What I've noticed is that this is happenning only when I use JRViewer for the preview.If I export report to the pdf that everything is ok. Any workaround for this? Link to comment Share on other sites More sharing options...
_freeman_ Posted October 2, 2016 Author Share Posted October 2, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now