Sign in Join

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

Mailing lists / lazarus / 2003-08

Default font

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Micha Nelissen

Hi,

Currently DefFontData is in lcl/graphics.pp. Shouldn't this be moved to the interface sections so that each target can supply it's own default name and configuration?

Regards,

Micha.

Reply by email

Mattias Gaertner
to Micha Nelissen
Show quoted text 5 lines
Hi, Currently DefFontData is in lcl/graphics.pp. Shouldn't this be moved to the interface sections so that each target can supply it's own default name and configuration?

The DefFontData is platform independent, for several reasons: -The problem is that there is not one default font. The default font depends on the context. For example, the gtk can define for each widget a font (and sometimes more than one). Just like the system color. The values in DefFontData should be translated by the intf to the context specific defaults.
- It is used for streaming.
The DefFontData values are the same as the default property values of TFont and so a default font is not saved.

The font implementation is not complete, so probably we need some more functions to handle theme dependent fonts.

Mattias

Reply by email