![]() |
Forum Index : Microcontroller and PC projects : picomite load font issue
Author | Message | ||||
grroel.tech Newbie ![]() Joined: 09/12/2021 Location: SpainPosts: 18 |
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: AustraliaPosts: 6283 |
Include the font within your program with DEFINEFONT Jim VK7JH MMedit |
||||
wolfme Newbie ![]() Joined: 26/10/2021 Location: GermanyPosts: 31 |
I think, LOAD FONT does only work with SD Card. |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
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 KingdomPosts: 10310 |
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 KingdomPosts: 7937 |
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 KingdomPosts: 10310 |
Oops was checking the command listing - have now removed there as well |
||||
grroel.tech Newbie ![]() Joined: 09/12/2021 Location: SpainPosts: 18 |
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 KingdomPosts: 302 |
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: AustraliaPosts: 3292 |
Thanks, I have fixed that now. Geoff Geoff Graham - http://geoffg.net |
||||
geobh Newbie ![]() Joined: 29/01/2022 Location: AustraliaPosts: 7 |
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: AustraliaPosts: 2640 |
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: AustraliaPosts: 1993 |
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: AustraliaPosts: 2640 |
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 KingdomPosts: 10310 |
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 KingdomPosts: 7937 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |