Page 1 of 1

font size

Posted: 07 January 2006, 6:27 AM
by DH*
Is there a way to change the font size in the IDE?

Posted: 07 January 2006, 8:58 AM
by mikep
Yes you can change the fonts. Open the global options file (from the options menu) and scroll down to approximately line 397 and you should see the font settings. You can change a munch of other things in this file as well by referring to the SCiTe manual. I changed my fonts from the default 12 point to 10 point as follows:

Code: Select all

if USE_ZBASIC_SETTINGS
#	font.monospace=font:Courier New,size:12
#	font.base=$(font.monospace)
#	font.small=$(font.monospace)
#	font.comment=font:Courier New,size:12,italics
#	font.code.comment.box=$(font.comment)
#	font.code.comment.line=$(font.comment)
#	font.code.comment.doc=$(font.comment)
#	font.text=font:Lucida Sans Unicode,size:10
#	font.text.comment=font:Lucida Sans Unicode,size:10
#	font.embedded.base=font:Lucida Sans Unicode,size:10
#	font.embedded.comment=font:Comic Sans MS,size:8,italics
#	font.vbs=font:Lucida Sans Unicode,size:9
#	font.js=font:Courier New,size:12	
	font.monospace=font:Courier New,size:10
	font.base=$(font.monospace)
	font.small=$(font.monospace)
	font.comment=font:Courier New,size:10,italics
	font.code.comment.box=$(font.comment)
	font.code.comment.line=$(font.comment)
	font.code.comment.doc=$(font.comment)
	font.text=font:Lucida Sans Unicode,size:9
	font.text.comment=font:Lucida Sans Unicode,size:9
	font.embedded.base=font:Lucida Sans Unicode,size:9
	font.embedded.comment=font:Comic Sans MS,size:7,italics
	font.vbs=font:Lucida Sans Unicode,size:8
	font.js=font:Courier New,size:10
	font.bas=$(font.monospace)
	start.in.monospaced.mode=1

Posted: 07 January 2006, 9:17 AM
by dkinzer
It is probably better to put your customizations in the 'User Options' file. The Global Options are read in first, followed by the User Options so the latter settings effectively override those in the former.

On the Options menu, select 'Open User Options File'. This file will initially be empty. Add or modify what you want and then exit the IDE and restart it. If you copy sections from the Global Options file, omit the 'if USE_ZBASIC_SETTINGS' lines. Those are used to selectively include sections and the controlling variable may not be active when the User Options is read.

The main advantage to customizing using the User Options file is that reinstalling the IDE will overwrite the Global Options but not the User Options.

Posted: 07 January 2006, 10:32 AM
by DH*
Thanx.

Tighter Line Spacing Needed

Posted: 10 August 2008, 22:44 PM
by liam.zbasic
I appreciate the large default font size (12-point) in the ZBasic IDE, but I prefer more visible lines of code per screen on my laptop. Reducing the font size to 10-point helps, but that is the limit of my vision. Is it possible to reduce the line spacing from 1.0 to 0.8 as in MS Word? Thank you.

Re: Tighter Line Spacing Needed

Posted: 11 August 2008, 8:12 AM
by dkinzer
liam.zbasic wrote:Is it possible to reduce the line spacing from 1.0 to 0.8 as in MS Word?
As far as I can tell there isn't a way to compress the vertical spacing of the lines.

Re: Tighter Line Spacing Needed

Posted: 11 August 2008, 9:07 AM
by dkinzer
liam.zbasic wrote:Is it possible to reduce the line spacing from 1.0 to 0.8 as in MS Word?
I found a workaround that may help. There are several factors that control the line spacing, one of which is the font selected for the line number column even when the line numbers are not visible. Consequently, specifying a smaller font for the line numbers may reduce overall line spacing.

Try adding a line like the one below to your User Options file which can be loaded via the Options menu. The font size should be no larger than that for the lines themselves.

Code: Select all

style.*.33=back:#C0C0C0,font:Courier New,size:10