Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 06:19 03 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : LOAD FONT problems....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 09:09pm 27 Dec 2016
Copy link to clipboard 
Print this post

Hi all.

Trying to use the LOAD FONT command on an E100 board, but I keep getting an odd error:





Expected a string?

I also tried DIM'ing F$ and making F$="FONT7.SYS", and putting that in the command, but get the same result back - expected a string. What gives?

When this error comes up, it also wipes out F$. So, F$="" and confirmed with ? LEN(F$), which returns zero.

F$="FONT7.SYS" prior to the LOAD FONT command, so the LOAD FONT command itself is wiping F$ as part of whatever it is doing.

Can anyone else please test the LOAD FONT command to see if they are getting the same issues?
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5911
Posted: 09:26pm 27 Dec 2016
Copy link to clipboard 
Print this post

From the changelog
For V5.2
Removed the LOAD FONT command (DEFINEFONT achieves the same outcome).
VK7JH
MMedit   MMBasic Help
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 09:36pm 27 Dec 2016
Copy link to clipboard 
Print this post

Damn. OK thanks.

This needs removing from the manual then.........
Smoke makes things work. When the smoke gets out, it stops!
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 02:37am 28 Dec 2016
Copy link to clipboard 
Print this post

Sorry about that (it is fixed in the beta manual).

Geoff
Geoff Graham - http://geoffg.net
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 12:07pm 28 Dec 2016
Copy link to clipboard 
Print this post

No worries.

I have copied the BigFont.BAS C-code thing into the bottom of the code and used DEFINEFONT #7, and it is working fine.

I still have plenty of space on the MM+, so I will just leave it there along with the only other C-function as ASCII, but if I get squeezed for space, I will move both to the library.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024