[lazarus] Fonts 'n stuff

Marc Weustink Marc.Weustink at cuperus.nl
Wed Nov 10 08:15:09 EST 1999


Hi,
In examinig why mwCustomEdit dumps as it is created in main.pp, I found some
things about Fonts.

In creating a font, it fontname (in GTK) is set to
TFont.Name := '-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1';

Sure, this is a *nix font name, but I think this is not the name we should
use, since all formatting info is already in there. IMHO it should be split
up like:

TFont.Name := 'helvetica';
TFont.Style := [fsBold];
TFont.Size := 12;
and so on.

(This wouldnt solve the problem since I don't have Courier NEW, but it will
bring us closer to a solution)

Any thoughts about this.

Marc






More information about the Lazarus mailing list