Re: Font debugging code

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Andreas Pflug" <pgadmin(at)pse-consulting(dot)de>, "pgadmin-hackers" <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Font debugging code
Date: 2003-10-16 13:19:30
Message-ID: 03AF4E498C591348A42FC93DEA9661B84C5B7B@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin(at)pse-consulting(dot)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.

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Raphaël Enrici 2003-10-16 13:47:43 Re: SSL detection bug is back under debian...
Previous Message Dave Page 2003-10-16 13:10:19 Re: XRC Editting