[Gambas-user] special chars bug solved!

Stefano Palmeri stefanopalmeri at ...152...
Wed May 31 02:37:23 CEST 2006


Alle 02:08, mercoledì 31 maggio 2006, Benoit Minisini ha scritto:
> > If it doesn't hurt Gambas2, could you modify next Gambas2
> > so that, when the user adds an Editor control to a Form, the
> > default value Font = Font["+0"] is automatically stored?
> 
> No, it is a bad hack.
> 
> But I think I found the problem: the Editor by default sets its font to 
> "monospace", and I don't know what happens if you do not have "monospace" on 
> your system. 
> 
> There is no "default fixed font" on X Window, but I noticed that on systems 
> using freetype, the following font aliases are defined: "monospace", "sans" 
> and "serif".
> 
> I did that, because the Editor works only with a fixed font.

You've got it! 

If I set 

Editor1.Font = Font["monospace"] 

the bug comes back.

If I set 

Editor1.Font = Font["sans"]

the bug goes away.

Anyway, it seems that monospace is on my system.

Stefano Palmeri

 







More information about the User mailing list