Re: Font debugging code - Mailing list pgadmin-hackers

From Andreas Pflug
Subject Re: Font debugging code
Date
Msg-id 3F8EA1B5.6040609@pse-consulting.de
Whole thread Raw
In response to Re: Font debugging code  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgadmin-hackers
Dave Page wrote:

>
>
>With icon font = 18pt Tahoma:
>
>2003-10-16 14:18:01 INFO   : Using fontmetrics 7/16, 18 Point
>2003-10-16 14:18:01 INFO   : Native Description
>'0;-24;0;0;0;400;0;0;0;1;0;0;0;0;Tahoma'
>2003-10-16 14:18:01 INFO   : Draw size of 'M': w=19, h=29, descent 5,
>external lead 0.
>2003-10-16 14:18:01 INFO   : Draw size of 'g': w=13, h=29, descent 5,
>external lead 0.
>2003-10-16 14:18:01 INFO   : Draw size of 'Mg': w=32, h=29, descent 5,
>external lead 0.
>
>Regards, Dave.
>
>

Huh, that's bloody wrong.
Did you by any chance define wxDIALOG_UNIT_COMPATIBILITY  to 1? This
means backwards compatibility, meaning silly wrong calculation. Is the
'I'd like random values' option.
When you step from frmMain into GetCharWidth(), the code in
wx/src/msw/window.cpp Line 5574 needs to be executed, or the wrong font
is evaluated. Actually, commenting out this part of code doesn't make
any sense at all...

Regards,
Andreas



pgadmin-hackers by date:

Previous
From: Raphaël Enrici
Date:
Subject: Re: SSL detection bug is back under debian...
Next
From: "Adam H. Pendleton"
Date:
Subject: Re: SSL detection bug is back under debian...