Jump to content
We've recently updated our Privacy Statement, available here ×

Mixed fonts in single text field


Recommended Posts

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

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...