Re: Font debugging code

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Font debugging code
Date: 2003-10-16 13:48:37
Message-ID: 3F8EA1B5.6040609@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Adam H. Pendleton 2003-10-16 13:56:21 Re: SSL detection bug is back under debian...
Previous Message Raphaël Enrici 2003-10-16 13:47:43 Re: SSL detection bug is back under debian...