Can't set monospace font in Windows

92 views
Skip to first unread message

Byron Hawkins

unread,
Feb 20, 2013, 5:39:51 PM2/20/13
to scite-i...@googlegroups.com
I've been using SciTE on Linux for a while, and I'm starting a Windows project, so I installed from the download page and moved my properties files over (cpp.properties, SciTEGlobal.properties and SciTEUser.properties). But the monospace font is not working. I've tried putting the properties files in two places:

C:\ProgramData\SciTE
C:\Program Files (x86)\SciTE   (The binary is in here)

The following entries for monospace font are in SciTEGlobal.properties. I tried the font with and without the "!", since I'm not sure what it does. 

if PLAT_WIN
  font.monospace=font:!Courier New,size:10
  font.base=$(font.monospace)
  font.small=$(font.monospace)
  font.comment=$(font.monospace)
  font.text=$(font.monospace)
  font.text.comment=$(font.monospace)
  font.embedded.base=$(font.monospace)
  font.embedded.comment=$(font.monospace)
  font.vbs=$(font.monospace)

Selecting "Options > Use Monospaced Font" has no effect. Is there something else I need to configure, or another place I am supposed to put the properties files? I don't have a way to tell what SciTE is loading, or how it is choosing this plain sans-serif font. Thanks for your help.

Byron

John Yeung

unread,
Feb 20, 2013, 5:54:33 PM2/20/13
to scite-i...@googlegroups.com
The cpp and global properties belong with the executable, but the user
properties belong in the directory specified by the USERPROFILE
environment variable.

John

KHMan

unread,
Feb 20, 2013, 5:54:37 PM2/20/13
to scite-i...@googlegroups.com
On 2/21/2013 6:39 AM, Byron Hawkins wrote:
> I've been using SciTE on Linux for a while, and I'm starting a
> Windows project, so I installed from the download page and moved
> my properties files over (cpp.properties, SciTEGlobal.properties
> and SciTEUser.properties). But the monospace font is not working.
> I've tried putting the properties files in two places:
>
> C:\ProgramData\SciTE
> C:\Program Files (x86)\SciTE (The binary is in here)
>
> The following entries for monospace font are in
> SciTEGlobal.properties. I tried the font with and without the "!",
> since I'm not sure what it does.
>
> if PLAT_WIN
> font.monospace=font:!Courier New,size:10
> font.base=$(font.monospace)
> font.small=$(font.monospace)
> font.comment=$(font.monospace)
> font.text=$(font.monospace)
> font.text.comment=$(font.monospace)
> font.embedded.base=$(font.monospace)
> font.embedded.comment=$(font.monospace)
> font.vbs=$(font.monospace)

The above, without the '!', works for me when copied into
SciTEUser.properties. I set the SciTE_HOME environment variable in
the system properties to point to the correct location.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Byron Hawkins

unread,
Feb 20, 2013, 6:08:57 PM2/20/13
to scite-i...@googlegroups.com
Ah, looks like my user properties were overriding the font... forgot I put font settings in there. Monospace working now, thanks all!

Neil Hodgson

unread,
Feb 20, 2013, 8:15:13 PM2/20/13
to scite-i...@googlegroups.com
Byron Hawkins:

> The following entries for monospace font are in SciTEGlobal.properties. I tried the font with and without the "!", since I'm not sure what it does.

GTK+ used to have two font systems, the original (GdkFont) which was faster and a newer version that used Pango which drew antialiased text. An initial '!' indicated to use Pango. GdkFont support was removed some time ago and the '!' is ignored.

Since the '!' is no longer needed, I've committed updated properties files that do not use it.

Neil

Reply all
Reply to author
Forward
0 new messages