Bug 52992 - [PATCH] National characters in PDF base fonts
Summary: [PATCH] National characters in PDF base fonts
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC Windows Vista
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
Depends on:
Reported: 2012-03-27 17:44 UTC by Tomasz Judycki
Modified: 2012-04-07 01:52 UTC (History)
0 users

Modified files. (52.94 KB, application/zip)
2012-03-27 17:44 UTC, Tomasz Judycki

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Judycki 2012-03-27 17:44:12 UTC
Created attachment 28511 [details]
Modified files.

I've modified FOP to support national characters in base 14 fonts (namely in Helvetica), using /BaseEncoding /WinAnsiEncoding /Differences [...] mechanism. It's rather cracking than improvement - because of my very limited time I was not able to code it better as I don't know FOP well enough. I hope that FOP developers will implement that solution making it more universal. 

Find attached modifications. I've used proper metric (src/codegen/fonts/Helvetica*.xml) provided by Bogusław Fries (he accept this contribution) and altered some source files from src/java/org/apache/fop/pdf, all modifications are surrounded by:
    // <tjudycki>
    // </tjudycki>
The last modified file is build.xml - parameter encoding is set to CEEncoding instead of WinAnsiEncoding.

The solution is described here http://tv.com.pl/stepbystep/fop_pdf/


Tomasz Judycki
Comment 1 Glenn Adams 2012-04-07 01:43:49 UTC
resetting P2 open bugs to P3 pending further review