> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
> Sent: 16 October 2003 13:05
> To: pgadmin-hackers
> Subject: [pgadmin-hackers] Font debugging code
>
> Hi friends,
>
> I added some font debugging code to frmMain, all you folks
> that suffer from bad looking/calculated dialogs, please check
> the debugging info that's written to the log file and post
> the values if there's something going wrong.
> Usually, the metrics for dialog recalculation should be the
> average width of the character 'g', and the height of all
> debugging output shouldn't differ at all.
With icon font = 8pt Tahoma:
2003-10-16 14:14:25 INFO : Using fontmetrics 7/16, 8 Point
2003-10-16 14:14:25 INFO : Native Description
'0;-11;0;0;0;400;0;0;0;1;0;0;0;0;Tahoma'
2003-10-16 14:14:25 INFO : Draw size of 'M': w=8, h=13, descent 2,
external lead 0.
2003-10-16 14:14:25 INFO : Draw size of 'g': w=6, h=13, descent 2,
external lead 0.
2003-10-16 14:14:25 INFO : Draw size of 'Mg': w=14, h=13, descent 2,
external lead 0.
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.