I agree with Giuliano, so add me to the ranks of the horrified.

TFont.Pitch doesn't appear to be used in any LCL or Carbon widgetset logic, so 
that might work. Please be sure to document in the patch that this is used only 
as a switch and has nothing to do with mono vs proportional spaced fonts.

Giuliano: I assume that you mean I would need to set my control's canvas 
Font.Pitch any time the font changes. That might be a lot of work (120,000 
lines of code that I did not write) and having a single switch for the canvas 
would be better but I don't see any unused properties in TCanvas. I thought 
perhaps the TCanvas.TextFlags could be extended, but the LCL doesn't have 
TextFlags the way VCL does.

Tobias: 2 of my e-mails were never posted to this list yesterday. Did you see 
the one where I attached screenshots showing different results than what you 
were getting? It appears there is some variation between systems on how text is 
rendered. Even with your patch the TLabel text does not look identical to the 
TButton text and the unpatched TLabel text doesn't look as bad as yours did.

Thanks.

-Phil



-----Original Message-----
From: Tobias Giesen [mailto:[EMAIL PROTECTED]
Sent: Sun 11/4/2007 12:47 PM
To: [email protected]
Subject: Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext
 
> There's a Font property, Pitch ... fpfixed

That sounds promising. I would like to try and submit a patch which
disables the fractional spacing only when the Pitch is fpfixed. Then
Philip can try if his component still works.

I read somewhere that if TCarbonDeviceContext.BeginTextRender was broken
after 0.9.22, then it must be fixed before the next official release.
Right now I am not sure when it was broken. But it is definitely broken
right now.

Cheers,
Tobias


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

<<winmail.dat>>

Reply via email to