Tobias,

I believe I can live with the patch by doing some conditional compiling on my 
end (note this is not needed with other widgetsets but will with Carbon if the 
patch is made). However, I'll need two additional changes. In 
TCarbonDeviceContext.GetTextExtentPoint and 
TCarbonDeviceContext.GetTextMetrics, please pass True in BeginTextRender 
instead of False and test to see if that has any undesirable consequences. I 
recompiled the IDE with this changes as well as my TLabel test app and I don't 
see any problems on this end.

ExtTextOut and GetTextExtentPoint are often used hand in hand, so disabling 
fractional spacing with non-nil DX means that it should also be disabled in 
GetTextExtentPoint. However, there's no way to pass this information to 
GetTextExtentPoint the way there is with ExtTextOut.

Thanks.

-Phil 


-----Original Message-----
From: Tobias Giesen [mailto:[EMAIL PROTECTED]
Sent: Sat 11/3/2007 4:24 PM
To: [email protected]
Subject: Re: [lazarus] Carbon Widgetset: character spacing problems
 
> I'm porting a large custom control that had character positioning 
> problems on Carbon (other widgetsets were fine) until Tomas fixed
> BeginTextRender.

You mean, until he broke BeginTextRender. The general functionality
of BeginTextRender was broken in favor of one or two custom controls.
This needs to be re-done properly.

Kind Regards,
Tobias Giesen

Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexible.com
www.tgtools.com

-----------------------------------------------------------
Registered at register court Steinfurt as HRA 5061
Liability / general partner: TGTools Ltd.
Company No. 05513299
Registered in England and Wales
Directors: Tobias Giesen and Claudia Hübl

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

<<winmail.dat>>

Reply via email to