Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: unicode font

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

    Default unicode font

    Hi,

    If I want to support English , Traditional Chinese and Simplfied Chinese in my JFreereport , which font should I choose?

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

    Default

    Hi,

    you can choose any font that suits your needs by modifying the stylesheets:

    http://forums.pentaho.org/showthread.php?t=32106

    Have more fun,
    said Thomas

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

    Default

    Hi,

    I use the ElementStyleSheet according to your example , but I get a nullPointer exception , this is what I write , is there any problem?
    I use 0.8.3c.

    <styles>
    <style name="font-style">
    <basic-key name="font">Arial Unicode MS</basic-key>
    <basic-key name="font-size">12</basic-key>
    <basic-key name="font-bold">false</basic-key>
    <basic-key name="font-italic">false</basic-key>
    <basic-key name="font-encoding">identity-H</basic-key>
    </style>
    </styles>

    ElementStyleSheet es = this.report.getStyleSheetCollection().getFirst("font-style");
    es.setStyleProperty(ElementStyleSheet.FONT,"Serif");

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

    Default

    Hi,

    After debug , I'm almost sure the problem is that I can't get "ElementStyleSheet es" from "getFirst("font-style")" , but I'm sure that "font-style" string is the same in my program and my xml , is there anything I miss?

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

    Default

    Hi,

    I'm working on a fix ...

    Have more fun,
    said Thomas

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

    Default

    Hi,

    a fix is now in the CVS and will be published as version 0.8.3d tomorrow.

    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.