Java and Unicode (again)

From: Peter Westlake (peter@harlequin.co.uk)
Date: Thu Jul 09 1998 - 14:34:34 EDT


Every once in a while I get the urge to try and display some
Unicode characters using Java. Recently I got further than on
many a previous occasion, using Glen Perkins' CJKDemo program.
I added Lucida Console and Lucida Sans Unicode (as supplied
with Windows NT 4, which I'm using) to the font properties file,
made the exclusions and fontcharset lines agree, and was able
to display several Unicode characters. Pi (04a6) and the for-all
symbol (2200) worked, but others (dagger, 2022; Cyrillic thingy,
04a6) don't.

I'm fairly sure the right font is being displayed, partly because
it looks right but mainly because the NT Charmap accessory shows
that Lucida Sans Unicode is the only font on my machine that has
the for-all symbol. Of course, that makes it a little surprising
that Lucida Console shows it too!

So ... what is going on?

Peter.

Peter Westlake, Harlequin Ltd, Barrington Hall, Barrington, Cambs CB2 5RG.



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:40 EDT