2006 IR Open Dicussion Posted September 5, 2006 Share Posted September 5, 2006 By: C. N. - tsangcn incorrect reportFont handling 2006-07-07 01:02 I come across a problem in using reportFont in iReport. In my jasperreport, I have defined reportFont as follows : <reportFont name="details" isDefault="true" fontName="Courier New" size="9" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="dm" isDefault="false" fontName="Domestic Manners" size="18" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="/tmp/Domestic_Manners.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/> Then, in a textElement, I defined its font as : <font reportFont="dm"/> When I open the jasperreport with iReport 1.2.4, and then click the save button to save it (no other actions has been done), the font tag for the textElement will incorrectly becomes : <font reportFont="dm" fontName="Courier New" pdfFontName="Courier" size="9" isPdfEmbedded ="false"/> which will cause the following error : Error exporting print... ExceptionConverter: java.io.UnsupportedEncodingException: Identity-H The problem is why iReport expand the font tag with fontName, pdfFontName, size and isPdfEmbedded attributes with reportFont attribute is used. The problem exists in iReport 1.2.1, iReport 1.2.2, iReport 1.2.3, and iReport 1.2.4. It does not exist in iReport 1.2.0 and before. Please help. Thanks C. N. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now