Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Lazarus IDE fonts or LCL GUI hint?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

mitya boyarintsev

Hello, Developers!

Has anyone of you, tried to use PathEditor under Carbon Lazarus IDE? (Project->Compiler Options->Paths and then open path list dialog by pressing '...' button)

You'll probably see normal text, but if you try to edit it, everything will be messed up, and pretty unusable. This is actually a 'normal' behavior for SynEdit, because selected font by default ('courier'?) does not seem to be mono-width.

I've fixed this problem (for the PathEditor only) by setting 'Monaco' font if currently selected LCL is Carbon

{$ifdef LCLCarbon}PathEdit.Font.Name:='Monaco';{$endif}

Monaco is "system default" mono-width font for MacOS X. But i really don't like this hack.

The thing I suggest is to add to lazarus IDE font selection, so font of the dialogs and text-edit fields can be selected. I guess it would take a lot of job to do. Because every time font is changed, controls have to be notified about that... or some code should walkthrough all opened control and see if font must be changed.

Or is it possible to supply a kind of GUIHint unit, that would containt information on what font's (colors, images, control sizes etc..) should be used with current widgetset. So setting a font to a SynEdit would look like

uses .. LCLGUIHint, ...

begin
  SynEdit.Font.Assign ( LCLGUIHint.SysMonoWidthFont );
end;

So no matter, what widgetset I'm using to compile, the application would look native to the user from the start.

For my projects I'm using GUIHint. I don't know if this solution suitable for LCL/Lazarus, I just don't want to add {$ifdef } for every dialog in IDE.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080911/a98cc942/attachment-0001.html

Reply by email

mitya boyarintsev
to Mattias Gärtner
I fixed a few places. See r16542. I will try later Monaco. If it is more readable than Courier, then it

becomes

the default under carbon synedit.

Thanks! PathEditor looks much nicer, than it used to be. I'm looking forward for 'Monaco' to become default for SynEdit!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080911/6f6b021b/attachment.html

Reply by email

Mattias Gaertner
to mitya boyarintsev
Show quoted text 7 lines
> I fixed a few places. See r16542. > I will try later Monaco. If it is more readable than Courier, then > it becomes > the default under carbon synedit. Thanks! PathEditor looks much nicer, than it used to be. I'm looking forward for 'Monaco' to become default for SynEdit!

The bold style of Monaco is hard to see on my Macbook. Courier is much better, especially for small font heights.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner

On the other hand, Courier has much worse internationalization support. Courier does not support Russian, while Monaco does.

And the latin accents in Couries are almost invisible, while they appear well with Monaco.

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho
Show quoted text 5 lines
On the other hand, Courier has much worse internationalization support. Courier does not support Russian, while Monaco does. And the latin accents in Couries are almost invisible, while they appear well with Monaco.

Ok. Changed.

Mattias

Reply by email