BBC BASIC
Development >> Mac OS-X >> ERROR: No Such Font
http://bbcbasic.conforums.com/index.cgi?board=macosx&action=display&num=1482866954

ERROR: No Such Font
Post by mschmalenbach on Dec 27th, 2016, 6:29pm

Hi

Merry Christmas all, and a Happy New Year!

I downloaded the OSX version of BBC Basic yesterday (26 Dec 2016) - it runs fine from the .DMG, but when I unmount that disk image and run it as-is from within the APPLICATIONS folder, it starts, asks me to select an IDE, I choose Richard Russell's SDLIDE, and get a "No such font" message and a ">" prompt on a blank screen - no IDE at all...

The ANDY PARKS IDE seems to work fine - but I'm not sure I want to use that one!

Is this a bug, or an error on my part?

Cheers

Martin
Re: ERROR: No Such Font
Post by Richard Russell on Dec 27th, 2016, 8:07pm

on Dec 27th, 2016, 6:29pm, mschmalenbach wrote:
Is this a bug, or an error on my part?

No idea. I know that it works OK on three different varieties of Mac (an old Mac Mini running OS-X 10.6 Snow Leopard, an old MacBook Pro running 10.7 Lion and a newer MacBook), but I have had little opportunity to test it myself.

Edit: I've just had a thought. If you ran it first "from the .DMG" it will have created a sdlide.ini file, and that file will contain within it the path and name of the selected font. If you later run it from somewhere else it will expect to find the font file in that original place, but if the .DMG is no longer mounted it won't exist!

To see if this is the cause of the problem, which seems highly likely, delete the sdlide.ini file before running it.

Richard.

Re: ERROR: No Such Font
Post by Richard Russell on Dec 29th, 2016, 09:25am

on Dec 27th, 2016, 8:07pm, Richard Russell wrote:
If you later run it from somewhere else it will expect to find the font file in that original place, but if the .DMG is no longer mounted it won't exist!

The OP hasn't responded, but I'm 95% certain this is the explanation because it fits the reported symptoms and circumstances perfectly. The question is: does it matter? So long as you first run BBC BASIC in its 'final' location there won't be a problem; only if you try it initially from the disc image and later unmount that will the issue arise.

There's no very straightforward fix that doesn't at least spoil the 'elegance' of the code, so I'm not enthusiastic about changing it. Manually deleting the sdlide.ini file, which needs to be done just once, should be an effective workaround.

Richard.
Re: ERROR: No Such Font
Post by jbk on Dec 29th, 2016, 8:06pm

tanks Richard for the tip, in case someone does not know where to look for slide.ini look for it in ~/Library/Application\ Support/BBCBasic
Re: ERROR: No Such Font
Post by mavison on Feb 20th, 2017, 2:55pm

Deleting the sdlide.ini file fixed the same problem for me ... without the location tip I would never have found it!

I did not knowingly execute it from the dmg file, but the symptoms matched.