You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/08/16 16:27:39 UTC
DO NOT REPLY [Bug 43143] New: - [PATCH] ExpertEncoding and ExpertSubsetEncoding not detected for Type 1 fonts
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43143
Summary: [PATCH] ExpertEncoding and ExpertSubsetEncoding not
detected for Type 1 fonts
Product: Fop
Version: 1.0dev
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: fonts
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: dev@cumiskey.com
William (wliem@allette.com.au) came across a problem with FOP when trying to use
his Bundesbahn font.
He reported the following exception :-
*Error message generated by FOP:*
10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)
---------
java.lang.NullPointerException
at org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103)
at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166)
at org.apache.fop.fonts.Font.hasChar(Font.java:189)
at org.apache.fop.fonts.Font.getCharWidth(Font.java:231)
at
org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188)
The font he was trying to use had an 'ExpertSubset' encoding which the FOP
PFMFile wasn't able to recognise. Unfortunately I do not have time to implement
Expert and ExpertSubset encoding at the moment, maybe someone could find the
time to do this. You can get the charset mapping in Appendix C of
http://www.adobe.com/devnet/font/pdfs/5176.CFF.pdf.
This patch provides the detection part of the solution and correctly identify
Expert and ExpertSubset encoding and will provide a suitable error in the log if
a type 1 font is used with such an encoding type.
This patch also contains :-
* Checkstyle fixes to the generated CodePointMapping.java
* A fix to the FontLoader loadFont() method. The fontFileURI was being
converted to lowercase (which should work fine on Windows but not on Linux).
Many thanks to William for reporting the problem.
Adrian.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43143] - [PATCH] ExpertEncoding and ExpertSubsetEncoding not detected for Type 1 fonts
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43143
dev@cumiskey.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From dev@cumiskey.com 2007-10-26 12:22 -------
This patch has now been applied in trunk, so Expert encoded fonts can now be
detected, but more work needs be done to provide support within FOP for them.
Adrian.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43143] - [PATCH] ExpertEncoding and ExpertSubsetEncoding not detected for Type 1 fonts
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43143
------- Additional Comments From jeremias@apache.org 2007-11-15 05:32 -------
I had to revert part of the patch since it produced problems with fonts that
worked before. Hopefully, this fixes it. More info in the commit message:
http://svn.apache.org/viewvc?rev=595297&view=rev
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43143] - [PATCH] ExpertEncoding and ExpertSubsetEncoding not detected for Type 1 fonts
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43143
------- Additional Comments From dev@cumiskey.com 2007-08-16 07:28 -------
Created an attachment (id=20669)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20669&action=view)
patch file
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.