splanquart Posted October 27, 2009 Share Posted October 27, 2009 Hello all,I use iReport 3.5.3 or 3.6.I have a font in Postscript Type 1 format. I have add this in my system (ubuntu 9.04). The internal preview is OK with this font but not in PDF preview. For my font, i have 4 files with extension: .afm, .inf, .pfb .pfm.I try : to put this file in ./ireport/fonts to create a jar file with font.xml and .afm file to add .afm file in iText.jar to add path of afm file into classpath to add property net.sf.jasperreports.export.pdf.font.MyFontName and value com.lowagie.text.pdf.fonts.MyFontName or path of afm fileI have not other idea. Can you teach my the god way for add font Postscript Type 1 into ireport for PDF generator (iText) THX Link to comment Share on other sites More sharing options...
svetok Posted October 27, 2009 Share Posted October 27, 2009 Have you tried to select this font in PDF Font Name combobox in your text field settings? Link to comment Share on other sites More sharing options...
splanquart Posted October 27, 2009 Author Share Posted October 27, 2009 Yes, but my font is not in PDF Font Name. I try to write font name but after the textfield hidden (iText not found the font). Link to comment Share on other sites More sharing options...
mdahlman Posted October 28, 2009 Share Posted October 28, 2009 The JasperReports FAQ is the place to start. This section is likely to help: Why is my text not displayed correctly in PDF?Also search for info on font extensions. That's the mechanism for making sure the relevant font is available.Regards,Matt Link to comment Share on other sites More sharing options...
dipesh.bhavsar Posted October 9, 2013 Share Posted October 9, 2013 Don't use the property PDF Font Name. If you're using iReport. this property is now deprecated.Refer below tutorial on font extension which is better way to manage font related issues.http://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/ Link to comment Share on other sites More sharing options...
barry-cw Posted December 28, 2013 Share Posted December 28, 2013 The question wasnt about TrueType Fonts - but TYPE 1 fonts. The font extension mechanism appears to support only TTF fonts... 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