I was playing with the following:
http://en.wikipedia.org/wiki/Chess_symbols_in_Unicode'/tmp/chess.txt' asFileReference writeStreamDo: [ :stream |
(16r2654 to: 16r265F)
do: [ :each |
stream nextPut: each asCharacter ]
separatedBy: [ stream space ].
stream crlf ].
$ cat /tmp/chess.txt
♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟
(this shows for me, in my terminal/mail, YMMV ;-)
String streamContents: [ :stream |
(16r2654 to: 16r265F)
do: [ :each |
stream nextPut: each asCharacter ]
separatedBy: [ stream space ].
stream crlf ].
Is there a way to make this work, a font selection that show these Unicode characters in Pharo ? That would be cool.
I tried using Freetype font Monaco, the same as my terminal where the right characters show, but that didn't help.
Sven
--
Sven Van Caekenberghe
http://stfx.euSmalltalk is the Red Pill