Can someone enlighten me on the current state of font usage
in the LCL and the Lazarus IDE?
As explained earlier, I would like to use a fixed width font to
present some tables in a TMemo component. However, I have been
unscuccessful so far.
I found out the following, using the Lazarus IDE (recent version from SVN;
fpc 2.1.1 on powerpc-darwin with gtk):
* When setting TLabel.Font.Pitch to fpFixed in the Object Inspector (OI),
you immediately see that a Courier-like font is selected to render
the label on the form's design window in the IDE.
This font is also used when the application is run.
* When doing the same for TButton or TMemo, the debug output
of the IDE says
TGtkWSWinControl.SetFont: implement me!
and indeed nothing happens on the form's design window in the IDE,
and also not when the application is run.
* TEdit does not have a Font property in the OI.
Setting the TButton or TMemo.Font (Name, Pitch) in the application itself
also does not work.
The Lazarus IDE itself, as I use it on my system, does however
present source code in the Lazarus Source Editor window using a
fixed width (courier) font. I can even find this in the
editoroptions.pp source file for the IDE, where I see things like
fEditorFont:='courier';
...
ASynEdit.Font.Name:=fEditorFont;
Why can't my application do the same thing?
It surely must be something simple that I overlooked (or is font support
indeed still missing for TButton, TMemo, ...).
This is the last thing that my port needs to be usable :-).
Thanks for any suggestions,
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE: +31 40 247 41 25 | Eindhoven University of Technology
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives