Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:12 01 Aug 2025 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 : picomite load font issue

Author Message
grroel.tech
Newbie

Joined: 09/12/2021
Location: Spain
Posts: 18
Posted: 07:21pm 15 Jan 2022
Copy link to clipboard 
Print this post

Picomite MMBasic v 5.07.01
Hello,
I can't use the LOAD FONT command; it always gives the message "Expected a string". I write in my program:
LOAD FONT "fonts/arial.fnt"
and I get an error: "Not in a program".
The file "arial.font" complies with the manual rules; font number 8, no comments, first line with only one value.
Am I doing something wrong, or is it a MMBasic error?

Regards.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:31pm 15 Jan 2022
Copy link to clipboard 
Print this post

Include the font within your program with DEFINEFONT

Jim
VK7JH
MMedit
 
wolfme
Newbie

Joined: 26/10/2021
Location: Germany
Posts: 31
Posted: 08:32am 16 Jan 2022
Copy link to clipboard 
Print this post

I think, LOAD FONT does only work with SD Card.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 09:40am 16 Jan 2022
Copy link to clipboard 
Print this post

That's true - fonts loaded from a SDcard using LOAD FONT will all be FONT 8 and will overwrite any FONT 8 in memory at the time. You can use DEFINEFONT to embed FONT 8 in your program too.

I'd have to check, but that seems to be an odd error message. LOAD FONT is supposed to work on a PicoMite, I think.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 10:41am 16 Jan 2022
Copy link to clipboard 
Print this post

LOAD FONT is not mentioned in the PicoMite manual BECAUSE the PicoMite does not support loading fonts from a file
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 11:02am 16 Jan 2022
Copy link to clipboard 
Print this post

It used to be, Peter, on page 48.  :)

Thanks for clearing that up.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 12:31pm 16 Jan 2022
Copy link to clipboard 
Print this post

  Quote  It used to be, Peter, on page 48.  :)

Oops was checking the command listing - have now removed there as well
 
grroel.tech
Newbie

Joined: 09/12/2021
Location: Spain
Posts: 18
Posted: 12:56pm 16 Jan 2022
Copy link to clipboard 
Print this post

Yes, the error messages that I assumed corresponded to the LOAD FONT command are actually from LOAD which expects a string to load a program, and which cannot be inside the program.
LOAD FONT is not implemented.
 
cosmic frog
Guru

Joined: 09/02/2012
Location: United Kingdom
Posts: 302
Posted: 12:52pm 29 Jan 2022
Copy link to clipboard 
Print this post

On page 53 (and on page 85) it says-

"Additional fonts and information can be found in the Embedded Fonts folder in the PicoMite firmware download."

This folder doesn't exist in the Picomite firmware download!

It does, however, appear in the Micromite firmware download.

Dave.
Edited 2022-01-29 22:59 by cosmic frog
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 02:31pm 29 Jan 2022
Copy link to clipboard 
Print this post

  cosmic frog said  On page 53 (and on page 85) it says-

"Additional fonts and information can be found in the Embedded Fonts folder in the PicoMite firmware download."

This folder doesn't exist in the Picomite firmware download!


Thanks, I have fixed that now.

Geoff
Geoff Graham - http://geoffg.net
 
geobh
Newbie

Joined: 29/01/2022
Location: Australia
Posts: 7
Posted: 12:15am 30 Jan 2022
Copy link to clipboard 
Print this post

FONT 8 ISSUE
I was using define font #8 written in C until I saw version 5.07.03
However when I removed the DEFINEFONT #8 section I thought the program would use the new included font 8.

The result I get is the screen is cleared to the right and to the bottom of the screen and filled with RGB(Blue), erasing whatever was on the screen.

The command I am using is:

Text 5, 5, "Front", L, 8, 1, RGB(yellow), RGB(BLue)

Can someone help me as to what I am doing wrong?

I have a Raspberry Pi Pico plugged into a 2.8" 320x240 waveshare display using ST7789_320.

Thanks
George
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 04:54am 30 Jan 2022
Copy link to clipboard 
Print this post

The command works perfectly on an ILI9341. The only other thing you have control over is how the display is setup.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1993
Posted: 06:31am 30 Jan 2022
Copy link to clipboard 
Print this post

I had the same problem, I used Define font 8 with a large number font and all worked as it should, but then when I tried another program using the inbuilt font #8 it was still using the Defined font that was not in the code.
The manual says on page 52 that there are 7 inbuilt fonts but then goes on to list 8.
so are there 7 or 8.
I guess the answer may be to use a number other that 1 to 8 so... Definefont #9.
But there is still the problem that after you have used Definefont #8 it seems to take over from the inbuilt Font 8.
Edited 2022-01-30 16:47 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 06:44am 30 Jan 2022
Copy link to clipboard 
Print this post

From (defective) memory font 8 was added to make the VGA Pico console/editor more usable in colour mode. QVGA cramps things a bit.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:16am 30 Jan 2022
Copy link to clipboard 
Print this post

  Quote  But there is still the problem that after you have used Definefont #8 it seems to take over from the inbuilt Font 8.


This is standard across all MM. You can replace in-built fonts with a define font (with some limitations)
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 08:45am 30 Jan 2022
Copy link to clipboard 
Print this post

When using Font 8 on the PicoMite VGA in colour mode, how does it work?
I thought it was for editing, but using DEFAULT FONT 8 doesn't seem to make it default - it reverts back to the normal font. However, using FONT 8 makes the font work temporarily in command mode.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025