Jump to content

Recommended Posts

Posted

I use a monospace font for editing AutoIt scripts in SciTE (currently, CourierNew 9pt). Regardless of what font size I set in the configuration, when I start SciTE to resume editing the script text is one size smaller than I specified. When I type Ctrl+<numpad-slash> the text changes to the desired size. The same is true of the output pane, and I have to reset the size for both areas every time I start SciTE.

IIRC, I've made few other changes to the configuration (e.g., changed the search highlight color and disabled Tidy), so this behavior seems odd. About SciTE says it's version 3.6.0 (Aug. 4, 2015).

Any idea how to fix this?

When the going gets tough, the tough start coding.

Posted

I set the font from Tools > SciTE Config > General 1 tab's monospace font Change button, followed by Save+Apply. In the most recent config change, I set the font to Inconsolata 10. I also changed some of the editor colors and the number of backups (in addition to some previous changes), and save-applied.

When I start SciTE and check the config, the General 1 tab shows the monospace font set to Inconsolata 10, but the script and output text are the wrong size until I reset them (Ctrl+<numpad-slash>).

The %HOMEPATH%\AppData\Local\AutoIt v3\SciTE\SciTEUser.properties file (with personal info redacted):

font.base=font:Arial,size:10,$(font.override)
font.monospace=font:Inconsolata,size:10
backup.files=2
proper.case=1
error.inline=1
highlight.current.word=1
highlight.current.word.by.style=1
highlight.current.word.autoselectword=0
highlight.current.word.wholeword=0
highlight.current.word.matchcase=0
highlight.current.word.minlength=3
use.tabs=1
indent.size=4
indent.size.*.au3=4
tabsize=4
style.au3.32=style.*.32=$(font.base),back:#E7E7E7
caret.line.back=#FFFD99
caret.line.back.alpha=256
selection.fore=#000000
selection.alpha=70
selection.back=#00FF00
style.error.1=fore:#FF0000,back:#FFFF00
style.error.2=fore:#FFFFFF,back:#FF0000
highlight.current.word.colour=#00FF00
indicators.alpha=63
calltips.set.above=0
style.au3.38=fore:#050505,back:#FFFFC8
calltips.color.highlight=#FF0000
visible.policy.strict=1
visible.policy.lines=0
style.au3.34=fore:#0000FF,back:#E7E7E7
style.au3.35=fore:#008000,italics,back:#E7E7E7
style.au3.0=fore:#000000,back:#E7E7E7
style.au3.1=fore:#008000,italics,back:#E7E7E7
style.au3.2=fore:#008000,italics,back:#E7E7E7
style.au3.3=fore:#0000FF,back:#E7E7E7
style.au3.4=fore:#000090,back:#E7E7E7
style.au3.5=fore:#0000FF,back:#E7E7E7
style.au3.6=fore:#808000,back:#E7E7E7
style.au3.7=fore:#FF0000,back:#E7E7E7
style.au3.8=fore:#FF8000,back:#E7E7E7
style.au3.9=fore:#000000,back:#E7E7E7
style.au3.10=fore:#808080,back:#E7E7E7
style.au3.11=fore:#808000,back:#E7E7E7
style.au3.12=fore:#DC143C,back:#E7E7E7
style.au3.13=fore:#FF0000,back:#E7E7E7
style.au3.14=fore:#993399,back:#E7E7E7
style.au3.15=fore:#0080FF,back:#E7E7E7
style.au3.16=fore:#0080FF,back:#E7E7E7
command.name.19.*=
command.name.33.*=
openpath.$(au3)=$(SciteDefaultHome)\..\include;C:\Users\%USERNAME%\%PROJECT%\%PROJECT%-sw\src
command.name.9.$(au3)=
calltip.*.use.escapes=1
command.19.beta=
command.33.beta=
title.full.path=1

 

When the going gets tough, the tough start coding.

Posted

Yes, I did. I think the only change I made to SciTEGlobal.properties was to show the Output pane by default and to set its size; I made that change long after the font-size problem appeared.

SciTEGlobal.properties modification fragment:

:
:
#output.horizontal.size=200
#output.vertical.size=60
#output.initial.hide=1
output.horizontal.size=200
output.vertical.size=150
output.initial.hide=0
:
:

 

When the going gets tough, the tough start coding.

  • Developers
Posted

I see the same happening, where the font size changes when typing Ctrl+/, but have difficulty to properly determine which font size each is.
Needs some more investigation.

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Yes. It looks to me like the initially-displayed font is the next smaller one within the list of available sizes, but that's just based on trying out different typefaces and sizes. My vision isn't sharp enough to say with any real certainty what is being displayed. :) I wish I could select some text and display its properties, but there doesn't seem to be a way to do that.

Edited by tremolux66

When the going gets tough, the tough start coding.

  • Developers
Posted (edited)

The Ctrl+ ; Ctrl- ; Ctrl/ are controlling zooming and not really the Font size directly. 
I don't know why yet but it looks like SciTE starts one click below the regular 100% zoom level at startup.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

Ok... found the issue. The SciTEGlobal contains:

magnification=-1

Which does what I described in the previous post namely setting the zoomlevel one click lower.

Put this in your SciTEUSer.properties and all is fine:

magnification=0

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Great!

When I fixed the setting just now, I didn't notice

output.magnification=-1

but sorted it out quickly. (Had to change the Output pane size anyway.)

When the going gets tough, the tough start coding.

Posted
  On 10/7/2017 at 7:19 PM, Jos said:

Somehow I uncommented those 2 lines in the SciTEGlobal.properties in my distribution, but will fix that for the next version. :)

Jos

Expand  

 

  On 10/7/2017 at 7:23 PM, tremolux66 said:

Great!

When I fixed the setting just now, I didn't notice

output.magnification=-1

but sorted it out quickly. (Had to change the Output pane size anyway.)

Expand  

 

Life does not like the vacuum. There will always be something to improve.

Thanks for your findings.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...