Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Specify diffent font size/type in a label/string element.

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Specify diffent font size/type in a label/string element.

    Hi,

    I've to display different size/type in a sentence in my pdf report. For example, I wanna to highlight a word: "He gives her a rose." This may be a String/Label element, I hope the rose can be Bold, and the rest are plain. There has any ways to do so ?

    I can split this sentence into 2 element, but I've to calculate where does "He gives her a " stop and set the x for the "rose" in order to end with the sentence.

    Please guide me how to do it. Thanks.

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Hi,

    this is impossible to do yet. The ony solution to the problem for now is to compute the stringwidth of all components manually and then to adjust the absolute position of all elements. This calculation must be done in a report function, if your content is dynamic.

    Support for rich documentes is planed but not yet implemented.

    Have more fun,
    said Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.