Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Font problem when printing under Leopard with JasperReports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font problem when printing under Leopard with JasperReports



Bernd,

We are seeing the same problems with fonts in JasperReports on Leopard. Printing to JasperReports screen viewer works OK. But its when printing to a printer that causes the font problems. I sorry but I don't have a work around since we haven't had time to debug the issue yet.

--Victor


Bernd Gründling wrote:
Hello,

I have a printing problem with JasperReports and Leopard. On jasperforge someone had the same problem but didn't get an answer, so I'm asking here.

Basically, when printing under Leopard via Jasper all characters are printed in LucidaGrande at about 12pt, no matter what I define in the report definition.

I am running Java 1.5.0_13 on an MacBook 2.16 GHz Intel Core 2 Duo under a German Mac OS X 10.5.1. I have reason to believe this behavior might be present in Java 1.6.0_01-dp as well.

These are my observations:

- printing under Windows XP works correctly: fonts and sizes can be defined
- printing under Tiger works
- printing directly via java.awt.print.PrintJob without JasperReports works
- alignment works
- all characters are at their correct positions, they are just too big/small. If I define 8pt, characters overlap each other. An 8pt string is shorter than a 12pt string, as expected
- directly requesting LucidaGrande does not change the font size problem (all are still about 12pt)
- the problem occurs when actually printing and creating a preview from within the print dialog
- if I don't print via Jasper using JasperPrintManager.printReport() but directly create a PDF via JasperExportManager.exportReportToPdfFile() I gt a perfectly shaped PDF.
- it happens with JasperReports 1.3.1 and 2.0.3


I tried to debug but the program soon disappeared in apple.awt.CPrinterJob.

Has anybody similar experiences and maybe a workaround?

Kind regards,
Bernd Gründling

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Font problem when printing under Leopard with JasperReports (From: Bernd Gründling <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.