Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0004139 | Openbravo ERP | A. Platform | public | 2008-06-24 12:22 | 2009-12-02 11:18 |
|
Reporter | pjuvara | |
Assigned To | iciordia | |
Priority | urgent | Severity | trivial | Reproducibility | have not tried |
Status | acknowledged | Resolution | open | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | pi | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0004139: Unicode fonts in iReports |
Description | The 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. |
Steps To Reproduce | |
Proposed Solution | |
Additional Information | |
Tags | Localization, ReleaseCandidate |
Relationships | blocks | defect | 0008550 | | closed | jonalegriaesarte | Non ROMAN fonts appear in Jasper Reports | blocks | design defect | 0011514 | | acknowledged | Triage Platform Base | Unable to generate pdf report unsing Identity-H encoding |
|
Attached Files | LegacyJasperInputStream.java (6,605) 2009-06-19 03:21 https://issues.openbravo.com/file_download.php?file_id=1439&type=bug |
|
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 |
Notes |
|
|
hope, this will also help Russian localization... |
|
|
|
|
|
|
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? |
|
|
|
|
|
|
The above proposal seams to work for us!
Thank you, Ismael |
|
|
|
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); |
|