Sign in Join

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

Mailing lists / lazarus / 1999-11

Fonts 'n stuff

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Marc Weustink

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

Reply by email

Shane Miller

I'm fine with that.
Want to change it? :-)
Feel free to make that modification.
Of course, this willl probably cause a problem when loading a FONT from the TFOntDialog. That will have to be changed a little so it doesn't simply assign the TFont.Name to the Linux name.

Shane

>> "Marc Weustink" 11/10/99 07:15AM >>>

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

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Shane Miller

+ From: Shane Miller
+
+ I'm fine with that.
+ Want to change it? :-)
:-))
There are still some other changes in the pipeline, but I think I can handle that ;-)

+ Feel free to make that modification.
OK
+ Of course, this willl probably cause a problem when loading a
+ FONT from the TFOntDialog. That will have to be changed a
+ little so it doesn't simply assign the TFont.Name to the Linux name. Maybe I'll do that in one pass.

Marc

Reply by email