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

JRXML rendering differently ?


Exie

Recommended Posts

Hi,

 

I have made a JRXML which I run on my local Windows box, and it renders fine. But when I package up my web app, and deploy to a Linux server (running in headless mode) it chops off some of the text fields.

 

Specifically, the following field:

Code:
<textField pattern="d MMM yyyy">
<reportElement x="91" y="6" width="40" height="12"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression class="java.util.Date"><![CDATA[$V{JavaStartDate}]]></textFieldExpression>
</textField>

 

I've checked the output of both PDF's and they are using the same font (Helvetica/ArialMT size 7). Yet when I run it locally I get "01 Aug 2005" and when I run the same code up on the Linux box I just get "01 Aug ".

 

Any ideas ?

Post edited by: Exie, at: 2006/07/31 01:46

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Yes, there is a bug in the way windoz renders True Type Fonts. It dates way back to when Apple and Co developed truetype font standards. Basicly what happend is micro$oft developed there "own" standard, then when win3.11 came out they made there Fonts metrix compatible with the industry standard by supplying 2 sets of matrix. But all the windoz programmers just used the "microsoft recommended" matrix. Which of course are crapy.

 

You have to make allowances in the size of the Field to accomidate the correct font matrix for the OS you are deploying on. Its a pain.

 

Later versions of Solaris have "fixed" there Font rendering to be "compatible" with the windoz bug. But not sure about L.

 

luck

walmillard

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...