darkryon Posted June 23, 2010 Share Posted June 23, 2010 Exporting to PDF using static text in bold font times does not work.The exported PDF uses Arial normal.I am using ireport 3.6.2.Thanks Link to comment Share on other sites More sharing options...
ajithn Posted June 23, 2010 Share Posted June 23, 2010 Hi darkryonThis kind of <staticText> should be work. :)ThanksajithnCode:<staticText> <reportElement x="342" y="70" width="100" height="20"/> <textElement> <font isBold="true"/> </textElement> <text><![CDATA[static text]]></text></staticText> Link to comment Share on other sites More sharing options...
darkryon Posted June 23, 2010 Author Share Posted June 23, 2010 ajithn,But when exporting to pdf the font Times in bold is not displayed.It appears Arial normal. Code: Post Edited by darkryon at 06/23/2010 16:04 Link to comment Share on other sites More sharing options...
darkryon Posted June 23, 2010 Author Share Posted June 23, 2010 I'm still with error/tools/fckeditor/editor/images/smiley/msn/sad_smile.gif Link to comment Share on other sites More sharing options...
ajithn Posted June 24, 2010 Share Posted June 24, 2010 Hi ,The problem is "Times New Roman" font does not exsist with default iReport (3.7.1)distribution. Thanksajithn Link to comment Share on other sites More sharing options...
darkryon Posted June 24, 2010 Author Share Posted June 24, 2010 ajithn,I added the times font in tools -> options -> fonts.And the problem remains. Thanks Link to comment Share on other sites More sharing options...
ckampshoff Posted June 25, 2010 Share Posted June 25, 2010 Hi,have you set the PDF-Font to bold? In iReport you have to set a font for the "normal" output and a special font for PDF output. For example I use SansSerif for report out put and Helvetica for PDF font name (I use iReport 3.6.0). If I want the font to be bold I have to check the checkbox "Bold" in the properties window and have to choose another PDF font "Helvetica-Bold". HTHChristina Link to comment Share on other sites More sharing options...
giulio Posted June 25, 2010 Share Posted June 25, 2010 ok, let's explain the problem.PDF does not use the font defined in the static text, it uses the PDF font (which may be normal, bold, etc). In other words in a common situation, PDF exporter does not use the bold/italic settings of the text field.There are two solutions:1. Explicitally set the PDF font of the static text (i.e. Helvetica-Bold)2. Use a font extension (all the fonts before the separator line in the font name combo box are fonts extensions, the others are just system fonts). A font extension is a group of fonts, for which is defined which font (TTF) must be used for the normal, bold, italic and bold-italic styles).Custom font extensions can be created from the options dialog, in the fonts tab.There are many other good reasons to use a font extensions, especially when the report is supposed to work on different platforms and systems.I hope this can clarify. Giulio 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