Hi all!!

I've a problem. I'm trying to make PDF documents with embedded TTF
external Fonts in a WebApp with no success. Every time, the builtin
fonts are in the PDF document but the TrueType fonts aren't.

In the .jrxml is written:

...
<reportFont name="EtiquetaTitulo" isDefault="false" fontName="Open
Symbol" size="12" isBold="false" isItalic="false" isUnderline="false"
isStrikeThrough="false" pdfFontName="OPENSYMBOL.TTF"
pdfEncoding="Cp1250" isPdfEmbedded="true"/>
...

and, in the .java which exports the PDF:

...

JRProperties.setProperty("net.sf.jasperreports.export.pdf.fontdir.jasper", 
<path_to_fonts>));

        JasperPrint jasperPrint = JasperFillManager.fillReport(report,
reportParameters, dataSorce);
        JRExporter exporter = getExporter(<pdf_type>);
        
        exporter.setParameter(JRExporterParameter.JASPER_PRINT,
jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
outputStream);
                
        exporter.exportReport();
...

What's wrong?

I've read about the FONT_MAP  parameter since JasperReports-1.0.1 but no
documentation/sample is included and I don't know how and if I have to
use it.

Any help is wellcome.

Cheers.
-- 
Andrés Gómez García
Computer Science Engineer
Telf:  +34 981 91 39 91
Fax:   +34 981 91 39 49
mailto:[EMAIL PROTECTED]
http://people.igalia.com/agomez
IGALIA, S.L. http://www.igalia.com

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to