Re: Prima 1.08 font problems

From: Martin Walter <mw25_at_uni.de>
Date: Sat, 23 Nov 2002 21:47:49 +0100
To: "prima_at_prima.eu.org" <prima_at_prima.eu.org>

Hi Dmitry,

thanks for your help. Here's the console output of examples/edit.pl after activating
(hopefully) all the printf - lines in apc_font.c :

loading fixed
reqS:12.[1]{0}(0).Helvetica/
#0: 857 (0): -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
pick:12.[12]{0}.helvetica
took diff 0.000000 after 0 steps out of 2784
#1: 737 (3000): -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1 0
loading -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
add to :12.12.{0}.helvetica
reqH:13.[1]{0}(0).fixed/iso8859-1
#0: 239 (1): -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
pick:13.[12]{0}.fixed
took diff 1.000000 after 0 steps out of 2784
#1: 236 (49): -misc-fixed-medium-r-normal--13-100-100-100-c-70-iso8859-1 0
loading -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
add to :13.12.{0}.fixed
reqS:18.[1]{0}(0).helvetica/iso8859-1
#0: 877 (0): -adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
pick:18.[18]{0}.helvetica
took diff 0.000000 after 0 steps out of 2784
#1: 757 (3000): -adobe-helvetica-bold-r-normal--18-180-75-75-p-103-iso8859-1 0
loading -adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
add to :18.18.{0}.helvetica

Please let me if there's anything else I could do for debugging.

The problem occurs here under both Gnome 1.4 and KDE 3.0 on a SuSE 8.0 standard
installation. The fonts used in menus are not affected however.

Is there an easy way to increase all widget's default heights by a given amount of pixels
before they are created? I've had my issues with fonts already in Perl/Tk, and its --font
command line option has proven its usefulness many times. Even if the auto-detection fails
like in my case, it wouldn't hurt if it could be solved easily with an empirically found
value which the program could then read from a config file or command line before creating
any widgets.

Regards, Martin

On 23 Nov 2002 15:35:24 +0100, Dmitry Karasik wrote:

>Yes, the font metrics is still an area of confusion. Mostly, this
>problem emerges if X font metrics are specified incorrectly. While
>I do agree that this is an undesirable effect, I simply cannot think
>on how would I catch and fix the bug in your case. Just in case,
>can you report what is the X name of the font Prima is using?
>You can uncomment all debug print statements in unix/apc_font.c
>and send the dump also.
Received on Sat 23 Nov 2002 - 21:47:34 CET

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET