[lazarus] SystemFont in TTextStyle

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Aug 27 04:00:27 EDT 2003


On Tue, 26 Aug 2003 22:26:12 +0200
Micha Nelissen <M.Nelissen at student.tue.nl> wrote:

> Mattias Gaertner wrote:
> 
> > On Tue, 26 Aug 2003 19:13:23 +0200
> > Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
> > 
> > 
> >>Mattias Gaertner wrote:
> >>
> >>
> >>>On Tue, 26 Aug 2003 18:53:30 +0200
> >>>Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
> >>>
> >>>
> >>>
> >>>>Mattias Gaertner wrote:
> >>>>
> >>>>
> >>>>
> >>>>>On Tue, 26 Aug 2003 17:50:49 +0200
> >>>>>Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
> >>>>>
> >>>>>
> >>>>>>2) The system font is really ugly on win32. Should the interface 
> >>>>>>substitute a nicer font or should the lcl only specify system font
> >for>>
> >>>>>>fatal errors?
> >>>>>
> >>>>>
> >>>>>The LCL should use as default font the same font as all other apps on
> >>>>>the desktop. 
> >>>>
> >>>>Okay, but what is the difference between setting TextStyle.SystemFont 
> >>>>and specifying FontName = 'default' ?
> >>>
> >>>
> >>>The Font Name is only one TFont property.
> >>>TextStyle.SystemFont specifies the name, size, pitch, charset. And
> >maybe>>more in future.
> >>
> >>Hmm, as far as I can see, the GTK checks if the name is 'default', and 
> >>if so, loads a default font, with default size and everything.
> > 
> > 
> > Yep. The font implementation is not complete in the gtk intf. 
> 
> Okay, let's implement it correctly then. What to do if size = 0 (which 
> is the case for DefFontData) ?

Good question. Have to look, what Delphi does.


Mattias






More information about the Lazarus mailing list