Playing chess (which font)?

Installing APL, Sorting out Fonts, Keyboards, etc.

Playing chess (which font)?

Postby MBaas on Sun Nov 29, 2009 2:48 pm

Looking at a replay of Morten's session at Dyalog08 about V12 Unicode, we can see that he used "APL385 Unicode" which is also configured as default font in V12.1 Unicode.

To test a new app, I was looking for some exciting unicode and thought chess might look nice. I am using "BabelMap" to explore unicode-fonts, so I searched for "Chess" and it displayed...no chess pieces :( Hmm, maybe a problem of that app? So I went to a vector-article from Morten about Unicode and tried to copy and paste the APL-Statement assigning chess-pieces to a var - and lost the pieces when pasting.

Could it be that "APL385 Unicode" as distributed with V12.1 does not contain the chess-symbols any more?
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: Playing chess (which font)?

Postby AndyS|Dyalog on Sun Nov 29, 2009 6:19 pm

You're absolutely correct - the APL385.ttf that was used at Dyalog '08 did have the chess characters in it, but subsequent versions don't.

Mind you, even in Morten's demo I notice that the example actually sets the font in the form (he used "Arial Unicode MS"): I think that that is the best way forwards. The chess pieces are defined to be in the Unicode font positions U+2654 to U+265F so something like the following will set you up:

white←⎕ucs 9811+⍳6 ⍝ King, Queen, Rook, Bishop, Knight, Pawn
black←⎕ucs 9817+⍳6
User avatar
AndyS|Dyalog
 
Posts: 257
Joined: Tue May 12, 2009 6:06 pm

Re: Playing chess (which font)?

Postby MBaas on Sun Nov 29, 2009 6:58 pm

Thanks Andy, meanwhile I got the font by mail, but am now getting an APLCORE when loading APL. I'll send it to support in a minute...

Thanks

Michael
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: Playing chess (which font)?

Postby Morten|Dyalog on Mon Nov 30, 2009 10:59 pm

Version 12.1 was distributed with an old version of the font. The latest version of the fonts should be available at http://www.dyalog.com/apl-font-keyboard.htm.
User avatar
Morten|Dyalog
 
Posts: 453
Joined: Tue Sep 09, 2008 3:52 pm

Re: Playing chess (which font)?

Postby woody on Thu Mar 10, 2011 6:07 pm

Greetings.

I just successfully enabled the chess characters on DyalogAPL 12.1.1.
I am running the 32 bit version on MS Windows XP Pro.

1. Download the latest 385 UNICODE font from http://www.dyalog.com/apl-font-keyboard.htm
2. Remove the APL385.ttf from Windows FONTS folder.
3. Copy in the newer APL385.ttf into the FONTS folder.
4. Reboot computer.
5. Start DyalogAPL 12.1.1 and define the chess characters as follows:
white←⎕ucs 9811+⍳6 ⍝ King, Queen, Rook, Bishop, Knight, Pawn
black←⎕ucs 9817+⍳6
6. Done.

Cheers,

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest