BBC BASIC
« BBC BASIC for SDL 2.0 v0.15a released »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:51pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BBC BASIC for SDL 2.0 v0.15a released  (Read 643 times)
Leo
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #3 on: Nov 10th, 2016, 11:13am »

Hi Richard,

I downloaded BBCSDL20 to try on my Windows 7 machine and ran into a problem with SDLIDE.
When I tried to change the edit font, the font selection box did not show facenames, it showed a listing of bits of directory names from my root directory.

The problem occurs because I installed to "c:\Program Files (x86)\BBCSDL".
I think any directory with spaces in the name would also cause the problem.
I verified it works Ok when installed to a directory without spaces in the name.

Investigating.. in PROCsetfont, I believe the line...
N% = FNdirscan(face$(), "dir " + @lib$ + "*.ttf", "*.ttf", "", "")

..needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces.
I haven't (yet) tried this.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #4 on: Nov 10th, 2016, 1:04pm »

on Nov 10th, 2016, 11:13am, Leo wrote:
... needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces.

Could well be. As you will appreciate, BBCSDL is primarily intended to be run in Linux and Mac OS, in which directory names containing spaces are uncommon. You could try changing the line you mention as follows:

Code:
      N% = FNdirscan(face$(), "dir """ + @lib$ + "*.ttf""", "*.ttf", "", "") 

Richard.
User IP Logged

Leo
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #5 on: Nov 10th, 2016, 1:35pm »

Yes, that fixes it.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls