Mike
What have you changed, exactly?
> Every time I load a text or html file it defaults to sans
> serif but not monospace. I have to select "Use monospace font"
> on the menu EVERY time to get monospace font.
> How do I get it to ALWAYS default to monospace?
You have to change style.*.32 to change default (eg. no selected lexer), and the styles in
the properties file of the lexers you use. Use variables to add flexibility, or just
remove the font: declarations to use default.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
> On 05/01/2009 15:39, Mike Hobbs wrote:
>> I've changed SciTEGlobal.properties, html.properties to make
>> everything default to monospace font but it does not work.
> What have you changed, exactly?
In SciTEGlobal.properties originally "font:!Bitstream Vera Sans" but
I added in "Mono" (copying the font.monospace assignment):
if PLAT_GTK
font.base=font:!Bitstream Vera Sans Mono,size:9
font.small=font:!Bitstream Vera Sans Mono,size:8
font.comment=font:!Bitstream Vera Sans Mono,size:9
font.text=font:!Bitstream Vera Sans Mono,size:9
font.text.comment=font:!Bitstream Vera Sans Mono,size:9
font.embedded.base=font:!Bitstream Vera Sans Mono,size:9
font.embedded.comment=font:!Bitstream Vera Sans Mono,size:9
In html.properties wherever there was a line of the form
style.hypertext.0=fore:#000000,$(font.text)
I changed it to the form...
style.hypertext.0=fore:#000000,$(font.monospace)
(in 13 places)
I also tried the example in the FAQ by adding the following to
SciTE.properties:
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)
>> Every time I load a text or html file it defaults to sans
>> serif but not monospace. I have to select "Use monospace font"
>> on the menu EVERY time to get monospace font.
>> How do I get it to ALWAYS default to monospace?
> You have to change style.*.32 to change default (eg. no selected
> lexer), and the styles in
> the properties file of the lexers you use. Use variables to add
> flexibility, or just
> remove the font: declarations to use default.
OK, this seems to have done the trick. Thank you.
(It wasn't quite as simple as the FAQ implied). With so many
potentially conflicting font definitions its difficult to know
what will take precedence in the end (or rather, how to achieve
the required behaviour). I still don't know "the proper" method
of achieving a default to monospace font for everything, although
I seem to have got what I want.
Mike