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

unicode ballot box not showing


venture

Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 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

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

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...