[GRASS5] [bug #1028] (grass) PNG driver - d.barscale

this bug's URL: http://intevation.de/rt/webrt?serial_num=1028
-------------------------------------------------------------------------

Bug report:

A (minor) problem is that the fonts used in d.barscale
are not consistent in PNG driver (CELL driver not tested).

When placing a barscale with d.barscale in a GRASS monitor,
the size of "N" (north) and the number at the right (e.g. 10km)
are consistent. The same settings in PNG driver lead to a
too large number at the right.
See
http://mpa.itc.it/markus/tmp/pngdriver.jpg

Nothing severe, but not nice.

Markus

--- Headers Follow ---

From neteler@itc.it Wed Apr 24 14:43:56 2002

Return-Path: <neteler@itc.it>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id 95E0213922
  for <grass-bugs@lists.intevation.de>; Wed, 24 Apr 2002 14:43:56 +0200 (CEST)
Received: from camelot.itc.it (camelot.itc.it [195.223.171.5])
  by mail.intevation.de (Postfix) with ESMTP id 638521B6D6
  for <grass-bugs@intevation.de>; Wed, 24 Apr 2002 14:43:55 +0200 (CEST)
Received: from orchestra.itc.it (orchestra [10.0.10.11])
  by camelot.itc.it (8.11.3/8.11.3) with ESMTP id g3OChsn06252
  for <grass-bugs@intevation.de>; Wed, 24 Apr 2002 14:43:54 +0200 (MET DST)
Received: from thuille.itc.it. (thuille [10.40.0.110])
  by orchestra.itc.it (8.11.6/8.11.6) with ESMTP id g3OChsK18477
  for <grass-bugs@intevation.de>; Wed, 24 Apr 2002 14:43:54 +0200
Received: (from neteler@localhost)
  by thuille.itc.it. (8.11.6/8.11.2) id g3OChrm14531
  for grass-bugs@intevation.de; Wed, 24 Apr 2002 14:43:53 +0200
Date: Wed, 24 Apr 2002 14:43:53 +0200
From: Markus Neteler <neteler@itc.it>
To: grass-bugs@intevation.de
Subject: PNG driver - d.barscale
Message-ID: <20020424144353.A14513@itc.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
X-Spam-Status: No, hits=0 required=5 tests=

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

A (minor) problem is that the fonts used in d.barscale
are not consistent in PNG driver (CELL driver not tested).

When placing a barscale with d.barscale in a GRASS monitor,
the size of "N" (north) and the number at the right (e.g. 10km)
are consistent. The same settings in PNG driver lead to a
too large number at the right.

I am unable to reproduce this.

I am also unable to see how this could happen; the text code isn't
part of the individual drivers, it's common to all of them.

Can you provide the region information, and the size of the monitors?

--
Glynn Clements <glynn.clements@virgin.net>

Glynn Clements wrote:

> A (minor) problem is that the fonts used in d.barscale
> are not consistent in PNG driver (CELL driver not tested).
>
> When placing a barscale with d.barscale in a GRASS monitor,
> the size of "N" (north) and the number at the right (e.g. 10km)
> are consistent. The same settings in PNG driver lead to a
> too large number at the right.

I am unable to reproduce this.

I am also unable to see how this could happen; the text code isn't
part of the individual drivers, it's common to all of them.

Can you provide the region information, and the size of the monitors?

OK, I see what's happened; The PNG monitor is actually significantly
taller than the image which you provided.

The text at the RHS of the bar is text, which is sized as 1/40th of
the frame' height. The North symbol at the LHS is line art, and is
sized in pixels.

I've fixed the text size at 14 pixels.

--
Glynn Clements <glynn.clements@virgin.net>

On Wed, Apr 24, 2002 at 03:53:44PM +0100, Glynn Clements wrote:

Glynn Clements wrote:

> > A (minor) problem is that the fonts used in d.barscale
> > are not consistent in PNG driver (CELL driver not tested).
> >
> > When placing a barscale with d.barscale in a GRASS monitor,
> > the size of "N" (north) and the number at the right (e.g. 10km)
> > are consistent. The same settings in PNG driver lead to a
> > too large number at the right.
>
> I am unable to reproduce this.
>
> I am also unable to see how this could happen; the text code isn't
> part of the individual drivers, it's common to all of them.
>
> Can you provide the region information, and the size of the monitors?

OK, I see what's happened; The PNG monitor is actually significantly
taller than the image which you provided.

The text at the RHS of the bar is text, which is sized as 1/40th of
the frame' height. The North symbol at the LHS is line art, and is
sized in pixels.

I've fixed the text size at 14 pixels.

Glynn,

as usual a perfect solution. Thanks,

Markus

PS: I'll close the report.