2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Chris Beels - cbeels Mixed fonts in single text field 2002-11-17 12:21 Our clients have been asking for mixing bold text in with regular text, but I don't think this is possible (other than through crazy layering), is it? By: Chris Beels - cbeels RE: Mixed fonts in single text field 2002-11-18 09:55 That would rock! But I imagine it will be a serious pain to implement. Good luck and thanks! By: Teodor Danciu - teodord RE: Mixed fonts in single text field 2002-11-17 12:33 Hi, I've been thinking to support basic HTML content in text fields. But this is not something that will come easily. Hope it will be available soon enough for you. Thank you, Teodor By: Darren Johnson - n4osi RE: Mixed fonts in single text field 2003-08-08 09:15 Has this support been added to the product? I'm wanting to do something similar: 1. <b>label</b>- some more <i>words</i>. Thanks! Darren Link to comment Share on other sites More sharing options...
kdplaskon Posted October 9, 2007 Share Posted October 9, 2007 Running 2.0.0. I have a text field in which the customer wants the label displayed in plain text and the field value in bold rendered into PDF reports. Is the combination of font types within a text field supported yet? I have been able to do this in static text, but my attempts to combine fonts in a text field generate syntax errors on the userRole field when building the report. The syntax errors do not occur when I do not try to combine font types within a single field. The textfieldexpression statement is: <style pdfFontName="Helvetica">"Composite Criterion: "</style>+ $F{reportBIC} I've also tried putting the style tags within the quoted label text. "<style pdfFontName="Helvetica">Composite Criterion: </style> "+ $F{reportBIC} In iReports, this generates an error against the newDate field. The jrxml from my latest attempt is attached. I can continue with two separate fields static text for the label, and text field for the field; however, this poses problems with exact spacing between the label and the field value. Please advise [file name=SFA_Composite_pg1_0927a.jrxml size=54035]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/SFA_Composite_pg1_0927a.jrxml[/file]Post edited by: kdplaskon, at: 2007/10/09 15:00 Link to comment Share on other sites More sharing options...
lucianc Posted October 11, 2007 Share Posted October 11, 2007 You need something likeCode:<textFieldExpression><![CDATA["<style pdfFontName="Helvetica">Composite Criterion: </style>"+ $F{reportBIC}]]></textFieldExpression> HTH,Lucian 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