On Thu, 14 Dec 2006 21:45:18 +0100
Micha Nelissen <[EMAIL PROTECTED]> wrote:

> Graeme Geldenhuys wrote:
> > TGfxFontClass = (fcSerif, fcSansSerif, fcTypewriter, fcDingbats);
> 
> I think a higher abstraction will be better. Something like a list of
> names that map to (font name, size, style, charset) per widgetset. We
> currently have one: "default". But it would be nice if the user could
> add something like "header" (bigger), or "error" (which would be red),
> etc. Then TControl.Font.Name := 'header' would set all font
> properties, and the application user may override this name to have a
> better font name / size / style for him (if the default for this name
> does not exist, for example).

About 'header': Most often the font name will be the same, but the size
or the style will be different.
Maybe better:
AControl.Font.Assign(GetDefaultHeaderFont)

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to