The 156 is octal, not decimal. Anyway, you can define the font as:

BaseFont zapfdingbats = BaseFont.createFont(BaseFont.ZAPFDINGBATS, 
"ZapfDingbats", BaseFont.NOT_EMBEDDED);

It will use the Unicode char to map into the ZapfDingbats character, if 
possible.

Paulo


________________________________
From: Annelie Karlsson [mailto:[email protected]]
Sent: Wednesday, January 05, 2011 6:09 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] FW: squares as list symbols

On 5 January 2011 17:39, 1T3XT BVBA <[email protected]<mailto:[email protected]>> 
wrote:
Now I can't follow you.

Are you referring to a page on Wikipedia saying "there is no black square"?
If so, please take a look at the attached screenshot.

I'm saying that the using unicode encoding for the black square 
(http://www.fileformat.info/info/unicode/char/25a0/index.htm) doesn't work with 
any of the fonts that come with iText. As in my first message, writing "\u25A0" 
won't work.

Are you saying that you used the Unicode value for that black square but "it 
doesn't work"?
Then you didn't consult ISO-32000-1 as advised.

Yep, I'm saying that it didn't work, and I did consult ISO-32000-1 as advised. 
For the black square it says name = a73 and code = 156. Using (char)156 didn't 
work either. Could you please be so kind as to tell me how exactly I consulted 
it wrong?

Zapfdingbats has its own encoding, and you should consult ISO-32000-1 to find 
the actual value of that black square. See the attached code sample named 
SquareBullet.java

 That example uses 110 which is a star according to ISO-32000-1.

Many thanks,

Annelie


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to