Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0004139
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformtrivialhave not tried2008-06-24 12:222009-12-02 11:18
ReporterpjuvaraView Statuspublic 
Assigned Toiciordia 
PriorityurgentResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0004139: Unicode fonts in iReports

DescriptionThe chosen font for Jasper Reports for 2.40 only includes Western European characters. We need to replace it with one that includes Unicode characters as well.
TagsLocalization, ReleaseCandidate
Attached Files? file icon LegacyJasperInputStream.java [^] (6,605 bytes) 2009-06-19 03:21

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0008550 closedjonalegriaesarte Non ROMAN fonts appear in Jasper Reports 
blocks design defect 0011514 acknowledgedplatform Unable to generate pdf report unsing Identity-H encoding 

-  Notes
(0014891)
stalker (reporter)
2009-03-24 12:16

hope, this will also help Russian localization...
(0016933)
pjuvara (reporter)
2009-06-04 07:02

Please see also forum post:
http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549510&topicid=6996156 [^]
(0017328)
stalker (reporter)
2009-06-15 18:08

the only applicable solution at the moment is to feed ALL jrxml Rreports with the following tag:
<reportFont name="foo" isDefault="true" pdfEncoding="Cp1251" pdfFontName="/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf"/>

right after <import> tags....

I couldn't manage the way to specify relative path in pdfFontName attrib.
Can anybody help?
(0017329)
iciordia (manager)
2009-06-15 18:47

Stalker,

please have a look to this post: http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549512&topicid=6993189 [^]

It seems that the relative path starts from "tomcat_home/yourOBContext/WEB-INF/classes".

Please let me know so we can prepare modularity in OB to properly include and deploy fonts in a module.

Thanks,

Ismael
(0017332)
stalker (reporter)
2009-06-15 23:45

The above proposal seams to work for us!
Thank you, Ismael
(0017437)
stalker (reporter)
2009-06-19 03:20

Here is a fix with a third party code (under GPL2.1).. which I adapted to have all existing reports speak Cyrillic.
install steps:
1. create dir structure OBroot/src/com/brunata/webbill/backend/reporting
2. put the attached file there
3. apply below patch
4. ant smartbuild
5. put appropriate font in WEB-INF/classes (LiberationSans-Regular.ttf in my case)
 
~/OpenbravoERP-2.50/src/org/openbravo/erpCommon/utility$ diff Utility.java Utility.java.orig
-----------
71,73d70
< import com.brunata.webbill.backend.reporting.LegacyJasperInputStream;
<
<
2128c2125
< String language, String baseDesignPath) throws FileNotFoundException, JRException {
---
> String language, String baseDesignPath) throws JRException {
2143,2144c2140
< // jasperDesign = JRXmlLoader.load(reportInputStream);
< jasperDesign = JRXmlLoader.load(new LegacyJasperInputStream(reportInputStream));
---
> jasperDesign = JRXmlLoader.load(reportInputStream);
2147,2148c2143
< // jasperDesign = JRXmlLoader.load(reportName);
< jasperDesign = JRXmlLoader.load(new LegacyJasperInputStream(new FileInputStream(reportName)));
---
> jasperDesign = JRXmlLoader.load(reportName);

- Issue History
Date Modified Username Field Change
2008-06-24 12:22 pjuvara New Issue
2008-06-24 12:22 pjuvara Assigned To => cromero
2008-06-24 12:22 pjuvara sf_bug_id 0 => 2001616
2008-06-24 12:22 pjuvara Tag Attached: ReleaseCandidate
2008-06-24 12:22 pjuvara Status new => acknowledged
2008-06-24 12:22 pjuvara Status acknowledged => scheduled
2008-06-24 18:51 pjuvara Priority high => urgent
2008-06-24 18:51 pjuvara Severity major => trivial
2008-07-22 01:17 cromero Assigned To cromero => pheenan
2008-10-28 10:56 pjuvara Target Version 2.50 => 2.60
2008-11-18 19:00 pjuvara Category F. Localization => A. Platform
2008-11-18 19:00 pjuvara Tag Attached: Localization
2008-11-21 16:45 pjuvara Status scheduled => acknowledged
2008-11-21 17:05 pjuvara Target Version 2.60 => trunk
2009-03-24 11:04 AinhoaPagola Assigned To pheenan => pjuvara
2009-03-24 12:16 stalker Note Added: 0014891
2009-04-22 14:38 stalker Issue Monitored: stalker
2009-04-23 16:07 pjuvara Relationship added related to 0008550
2009-05-22 19:33 pjuvara Assigned To pjuvara => iciordia
2009-06-04 07:02 pjuvara Note Added: 0016933
2009-06-15 18:08 stalker Note Added: 0017328
2009-06-15 18:47 iciordia Note Added: 0017329
2009-06-15 23:45 stalker Note Added: 0017332
2009-06-19 03:20 stalker Note Added: 0017437
2009-06-19 03:21 stalker File Added: LegacyJasperInputStream.java
2009-12-02 11:18 rafaroda Relationship added blocks 0011514
2009-12-02 11:18 rafaroda Relationship replaced blocks 0008550


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker