Re: Font debugging code - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Font debugging code
Date
Msg-id 03AF4E498C591348A42FC93DEA9661B84C5B7B@mail.vale-housing.co.uk
Whole thread Raw
In response to Font debugging code  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: Font debugging code
List pgadmin-hackers

> -----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.


pgadmin-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: XRC Editting
Next
From: Raphaël Enrici
Date:
Subject: Re: SSL detection bug is back under debian...