|
Post by kelvinkoolohm on Nov 6, 2018 23:48:05 GMT
When I am developing a program with the editor and I'm testing it, all "Print" statements open (what I call) a "console" window to show the output. As long as I'm running the program from the editor, both the editor and the "console" window use the same font---Courier New, 16 pt, regular. Both the editor screen and the "console" screen are easy to read using that font.
However, once I tokenize the program and run it with a RENAMED "jbrun101.exe" file, the print statements to the "console" in the program are output in a font that is different and much smaller, which makes the tokenized version very hard to read. I even looked at the "Printer font" control in the tools menu, but it made no difference while viewing the running of the program.
Is there any way to make the tokenized "print" statements print the output with the same font as the output from the "Run" command available from the editor?
Thanks
|
|
|
Post by Rod on Nov 7, 2018 8:27:28 GMT
Yes there is. It is covered in the help file "using the runtime engine" You need to copy and distribute the jbasic2.ini file. That file holds the font info. If you don't then the runtime will default to the host computers default font.
The chosen font must exist on the host computer so Courier_New will be ok. But if you use an exotic font you would need to include it in the distribution also.
You will find the jbasic2.ini file in your %appdata% folder. The one that holds all of the example files. Something like
C:\Users\Rod\AppData\Roaming\Just BASIC v2.0\jbasic2.ini
Be sure to click on search for any file not just .bas .tkn and .lsn if you are using the editor to search for it. It wont show you .ini by default.
I see that Carl saves the .ini as justbasic2.ini as well as holding jbasic2.ini you will need to experiment to see which name works with your .tkn and the runtime.
|
|