venture Posted January 28, 2009 Share Posted January 28, 2009 I thought I had got it correct but nope:The unicode for the checkbox (or ballot box) is u2611 u2611 and the unchecked u2610 u2610 However in the iReport when I run the viewer all I get is the hoolwo box. I even tried u2612, u2613 and 2614 all give the same result the hollow box. Where do I set up the unicode set to use? IS there a display problem using the UTF-8?Any ideas? I thought this was straight forward but I seem to be missing some link.Yes I know about the font path set up and the class path setup but neither seem to be affecting the result.IS this a known bug? Using iReports 3.0.0, Java 1.6.0_11 Link to comment Share on other sites More sharing options...
mdahlman Posted January 28, 2009 Share Posted January 28, 2009 venture, What font are you trying to use? For me it works fine like this: <textField hyperlinkType="None"> <reportElement x="100" y="0" width="152" height="63"/> <textElement> <font fontName="Arial Unicode MS" size="34"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["u2611"]]></textFieldExpression></textField> Regards,Matt Link to comment Share on other sites More sharing options...
mdahlman Posted January 28, 2009 Share Posted January 28, 2009 By the way, the code that I typed was: backslash u 2 6 1 1. But the forum doesn't always display the backslash. Link to comment Share on other sites More sharing options...
venture Posted January 28, 2009 Author Share Posted January 28, 2009 I am using Arial in the font chooser but I do not see Arial Unicode.I checked the font path and all the iReport font paths are there.If I need to get this font how do I get that?USing Xp Sp3 Link to comment Share on other sites More sharing options...
venture Posted January 28, 2009 Author Share Posted January 28, 2009 More info:I use a variable to store the string: "u2611" (backslash u 2 6 1 1)I then place the variable on the iReport and then seledt it to edit properties.I selected Lucida Sans Unicode since this is the only font to have this unicode in it.I always get the hollow box and never any other symbol. Link to comment Share on other sites More sharing options...
venture Posted January 28, 2009 Author Share Posted January 28, 2009 I have a solution that I think will work.On another web site I found a reference to fonts that support the Miscellaneous unicode block (2600 and above). See http://www.fileformat.info/info/unicode/block/miscellaneous_symbols/fontsupport.htm While this is a little out of date it did prompt me to try out the DejaVu Sans font that comes with iReport. Now the ballot box shows properly. Som eof the other DejaVu fonts work and some don't - just the luck of the draw I guess? Now onto the next issue! 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