How do you change text size in basic?
How do you change text size in basic?
Hi
I have searched the web and this forum, but can’t find anything on creating larger text in basic, how do I do it?
Thank you
I have searched the web and this forum, but can’t find anything on creating larger text in basic, how do I do it?
Thank you
Re: How do you change text size in basic?
There is no automatic function to do this. If you need bigger text you'd have to code something that generates it ... and unless you do that in assembler it'll probably be too slow.
Website: Tardis Remakes / Mostly remakes of Arcade and ZX Spectrum games.
My games for the Spectrum: Dingo, The Speccies, The Speccies 2, Vallation & Sqij.
Twitter: Sokurah
My games for the Spectrum: Dingo, The Speccies, The Speccies 2, Vallation & Sqij.
Twitter: Sokurah
Re: How do you change text size in basic?
That explains why I can’t find any tutorials in creating larger text
Re: How do you change text size in basic?
Consider using Andy Pennell's Print Utilities:
https://spectrumcomputing.co.uk/entry/8 ... _Utilities
https://spectrumcomputing.co.uk/entry/8 ... _Utilities
Re: How do you change text size in basic?
There are plenty of utilities for fonts of all shapes and sizes in BASIC. If you search the archive for Genre = "Utility: Fonts/UDGs" you'll see a bewilderment of choice! Here are a few from that list:
Small fonts:
https://spectrumcomputing.co.uk/entry/1 ... e_Printing (but you need to download it from this compilation - side B)
Fonts big and small:
https://spectrumcomputing.co.uk/entry/1 ... m/Bigprint (but you need to download it from this compilation) - side A.
For proportional fonts:
https://spectrumcomputing.co.uk/entry/2 ... ectrum/FZX
Re: How do you change text size in basic?
Thank for this, I will get the tape.equinox wrote: ↑Sun Feb 13, 2022 9:17 am Consider using Andy Pennell's Print Utilities:
https://spectrumcomputing.co.uk/entry/8 ... _Utilities
Re: How do you change text size in basic?
Code: Select all
10 FOR f=0 TO 7
20 POKE 23681,64+f
30 LPRINT "HELLO"
40 NEXT f
50 REM change 64 downto 60 for effect
60 REM change 64 to 72 middle
70 REM change 64 to 80 lower part
80 REM https://www.worldofspectrum.org/forums/discussion/comment/914785/#Comment_914785
90 REM https://www.worldofspectrum.org/forums/discussion/comment/825202/#Comment_825202
Re: How do you change text size in basic?
Code: Select all
10 FOR F=64 TO 71: POKE 23681,F: LPRINT "NICE EFFECT": NEXT F
20 FOR F=72 TO 79: POKE 23681,F: LPRINT " OF THE ": NEXT F
30 FOR F=80 TO 87: POKE 23681,F: LPRINT "PRINTERBUFFER": NEXT F
40 REM https://www.worldofspectrum.org/forums/discussion/comment/9747/#Comment_9747
- WhatHoSnorkers
- Manic Miner
- Posts: 255
- Joined: Tue Dec 10, 2019 3:22 pm
Re: How do you change text size in basic?
Horizons "Thro The Wall" uses a machine code utility to do it. But otherwise, in BASIC, you can't.
The machine code utility looks like it takes a string P$ and some POKEd values, and then calls a routine.
The machine code utility looks like it takes a string P$ and some POKEd values, and then calls a routine.
I have a little YouTube channel of nonsense
https://www.youtube.com/c/JamesOGradyWhatHoSnorkers
https://www.youtube.com/c/JamesOGradyWhatHoSnorkers
Re: How do you change text size in basic?
CSIZE 0,0 for regular text, CSIZE 2,0 for double-width, CSIZE 2,1 for double-height as well... oh, wait, no, that's the QL. And the SAM Coupé had something similar.
But never fear! 40 Best Machine Code Routines for the ZX Spectrum has "Screen Magnify and Copy" on page 77. It's slow, given that it's machine code, but I've used it to useful effect in the Spectrum conversion of Big Clive's Supergayrainbow Exploding USB Power Supply Game to generate the round titles.
But never fear! 40 Best Machine Code Routines for the ZX Spectrum has "Screen Magnify and Copy" on page 77. It's slow, given that it's machine code, but I've used it to useful effect in the Spectrum conversion of Big Clive's Supergayrainbow Exploding USB Power Supply Game to generate the round titles.
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
Re: How do you change text size in basic?
Thank you for these snippetshikoki wrote: ↑Sun Feb 13, 2022 1:05 pmCode: Select all
10 FOR F=64 TO 71: POKE 23681,F: LPRINT "NICE EFFECT": NEXT F 20 FOR F=72 TO 79: POKE 23681,F: LPRINT " OF THE ": NEXT F 30 FOR F=80 TO 87: POKE 23681,F: LPRINT "PRINTERBUFFER": NEXT F 40 REM https://www.worldofspectrum.org/forums/discussion/comment/9747/#Comment_9747
Re: How do you change text size in basic?
Thank you, I will have a look.
Last edited by Lostboys on Sun Feb 13, 2022 2:19 pm, edited 1 time in total.
Re: How do you change text size in basic?
Thank you I will have a look.TMD2003 wrote: ↑Sun Feb 13, 2022 1:51 pm CSIZE 0,0 for regular text, CSIZE 2,0 for double-width, CSIZE 2,1 for double-height as well... oh, wait, no, that's the QL. And the SAM Coupé had something similar.
But never fear! 40 Best Machine Code Routines for the ZX Spectrum has "Screen Magnify and Copy" on page 77. It's slow, given that it's machine code, but I've used it to useful effect in the Spectrum conversion of Big Clive's Supergayrainbow Exploding USB Power Supply Game to generate the round titles.
Re: How do you change text size in basic?
I had all the routines typed in and saved, and have probably lost them on a hard disc that went a bit mad (and was only partially recovered). I really should get round to typing them in again.
Any routine in that book that says "it's not relocatable" - it is if you have an assembler, the book assumed that anyone using these routines was typing them in as a string of numbers. "Not relocatable" will include a CALL or (less likely) a JP in there somewhere.
Any routine in that book that says "it's not relocatable" - it is if you have an assembler, the book assumed that anyone using these routines was typing them in as a string of numbers. "Not relocatable" will include a CALL or (less likely) a JP in there somewhere.
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
Re: How do you change text size in basic?
SpecBAS also allows fractional zooms with the SCALE command, which can be embedded in PRINT statements the same way INK can;
10 PRINT SCALE 3,3;"HELLO"
for example. Assuming you want to do your Sinclair BASIC on a PC that is.