Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-09-20 Thread Sebastian Harl
clone 493575 -1
reassign -1 cacti
retitle -1 cacti: Allow font names to be given instead of font paths
thanks

Hi,

On Wed, Aug 06, 2008 at 06:09:49PM +0300, Teodor wrote:
 On Wed, Aug 6, 2008 at 3:49 PM, Sebastian Harl [EMAIL PROTECTED] wrote:
  * bug #493575 refers to version 1.3.x not using the specific fonts.
 
  I cannot reproduce that - it works just fine for me. See below.
  I think you missed the important part of my message: In 1.3 you do not
  specify a font path, but use font identifiers like this:
 
   --font 'DEFAULT:0:Times'
   --font 'TITLE:12:Verdana'
 
  See the manpage for details and the following entry of the upstream
  changelog (NEWS):
 
   * fonts come through fontconfig, use the Pango font nameing scheme
 - 'Times 20' ... it is not possible to use truetype fonts
 directly anymore.
 
 Yes, I missed that. Thanks for the explanation. I've attached two
 graph generated with two different fonts, but the spacing is broken
 probably because I should specify a monospace font. Do you recommend
 any monospace font for rrdgraph?

I'm using the default fonts (DejaVu Sans Mono,Bitstream Vera Sans
Mono,monospace,Courier) which work perfectly fine for me.

 Unfortunately, this breaks other software like cacti which is
 expecting to be given a font path and is rejecting something like
 Times or Verdana and gives [ERROR: FILE NOT FOUND].

I see how this is a problem. However, I don't think that it's worth to
bloat the rrdtool code by introducing some kind of compat-layer to
support the old behavior. Imho, specifying the font name is much more
elegant and convenient. Instead, tools using rrdtool should switch to
use / support font names as well. I've cloned and reassigned this bug to
cacti, so that they can fix this. Imho this bug justifies a freeze
exception so a fix should still be able to make it into Lenny.

In rrdtool, I'll add an appropriate note to NEWS.Debian and then close
this bug.

Cheers,
Sebastian

-- 
Sebastian tokkee Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-06 Thread Sebastian Harl
Hi,

On Wed, Aug 06, 2008 at 10:41:01AM +0300, Teodor wrote:
 On Wed, Aug 6, 2008 at 9:42 AM, Sebastian Harl [EMAIL PROTECTED] wrote:
  Also, I've merged the bug with #493594 because I believe they are
  the same, Marc please tell me if you had different things in mind
  when opening another bug.
 
 I think the bug #493594 was for 1.3.x series, not for 1.2.x and maybe
 this is why another bug report.

I could not reproduce this bug with 1.3.1-2.

 From my tests it seems that `rrdtool' does not use the specified fonts
 as the graphs are identical no matter which font is given.

This works for me in both 1.2.28 and 1.3.1. Note, that the way how to
specify the font has changed. In 1.2.28 you had to specify a path to a
.ttf file while in 1.3 you may use any font identifier as understood by
libpango.

HTH,
Sebastian

-- 
Sebastian tokkee Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-06 Thread Teodor
On Wed, Aug 6, 2008 at 9:42 AM, Sebastian Harl [EMAIL PROTECTED] wrote:
 Reopening #493575 since Teodor confirmed it. Please note though, that
 this tag is meant to be used by the maintainers only (see
 http://www.debian.org/Bugs/Developer#tags).

Ok, thanks for the link. I didn't knew that some tags are for maintainers only.

 Also, I've merged the bug with #493594 because I believe they are the same, 
 Marc
 please tell me if you had different things in mind when opening another
 bug.

I think the bug #493594 was for 1.3.x series, not for 1.2.x and maybe
this is why another bug report.

From my tests it seems that `rrdtool' does not use the specified fonts
as the graphs are identical no matter which font is given.

Thanks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-06 Thread Sebastian Harl
reopen 493575
forcemerge 493575 493594
thanks

Hi,

Reopening #493575 since Teodor confirmed it. Please note though, that
this tag is meant to be used by the maintainers only (see
http://www.debian.org/Bugs/Developer#tags). Anyway, I could reproduce
the bug with the --font options as provided in #493594, so the tag is
fine, and I could confirm that this issue is gone in 1.3. Also, I've
merged the bug with #493594 because I believe they are the same - Marc,
please tell me if you had different things in mind when opening another
bug.

On Sun, Aug 03, 2008 at 02:04:15PM +0300, Teodor wrote:
 On Sun, Aug 3, 2008 at 1:19 PM, Marc Storck [EMAIL PROTECTED] wrote:
  Version: 1.2.28-1
[...]
  Graphics produced with rrdtool using this version of librrd2 are without 
  text.
 
 The same problem here (in 'cacti' graphs). Although it doesn't affect
 the new 1.3.x packages, it might be good to pin the problem and see if
 there are any other consequences.

The graphing part of rrdtool has been rewritten in 1.3, so the problem
seems to have been fixed by that.

On Sun, Aug 03, 2008 at 03:07:41PM +0200, Marc Storck wrote:
 It seems that the preset default font has vanished from rrdtool.
 
 When rrdtool is called with the following options:
 
 --font TITLE:12: \
 --font AXIS:8: \
 --font LEGEND:10: \
 --font UNIT:8: \
 
 The graphs generated do not contain any text.

I assume this has been introduced in upstream SVN revision 1403 (fix
for --font bug (font names wer not being picked up at all)) but I did
not have the time yet to have a closer look at it. Maybe someone else on
rrd-developers could try to find the source of the problem.

Cheers,
Sebastian

-- 
Sebastian tokkee Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-06 Thread Teodor
On Wed, Aug 6, 2008 at 10:57 AM, Sebastian Harl [EMAIL PROTECTED] wrote:
 I think the bug #493594 was for 1.3.x series, not for 1.2.x and maybe
 this is why another bug report.

 I could not reproduce this bug with 1.3.1-2.

Just to make myself clear:
* bug #493594 refers to version 1.2.28 not displaying any text;
* bug #493575 refers to version 1.3.x not using the specific fonts.

 From my tests it seems that `rrdtool' does not use the specified fonts
 as the graphs are identical no matter which font is given.

 This works for me in both 1.2.28 and 1.3.1. Note, that the way how to
 specify the font has changed. In 1.2.28 you had to specify a path to a
 .ttf file while in 1.3 you may use any font identifier as understood by
 libpango.

Since 1.3.x version will probably be in etch, I'm testing only this
version. What is the font path you set, so we can test is either?

Thanks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-06 Thread Sebastian Harl
Hi again,

On Wed, Aug 06, 2008 at 03:32:31PM +0300, Teodor wrote:
 On Wed, Aug 6, 2008 at 10:57 AM, Sebastian Harl [EMAIL PROTECTED] wrote:
 Just to make myself clear:
 * bug #493594 refers to version 1.2.28 not displaying any text;

Agreed.

 * bug #493575 refers to version 1.3.x not using the specific fonts.

I cannot reproduce that - it works just fine for me. See below.

Also, this is not what the report says - it's also talking about text
not being displayed at all.

  From my tests it seems that `rrdtool' does not use the specified fonts
  as the graphs are identical no matter which font is given.
 
  This works for me in both 1.2.28 and 1.3.1. Note, that the way how to
  specify the font has changed. In 1.2.28 you had to specify a path to a
  .ttf file while in 1.3 you may use any font identifier as understood by
  libpango.
 
 Since 1.3.x version will probably be in etch, I'm testing only this
 version. What is the font path you set, so we can test is either?

I think you missed the important part of my message: In 1.3 you do not
specify a font path, but use font identifiers like this:

  --font 'DEFAULT:0:Times'
  --font 'TITLE:12:Verdana'

See the manpage for details and the following entry of the upstream
changelog (NEWS):

  * fonts come through fontconfig, use the Pango font nameing scheme
- 'Times 20' ... it is not possible to use truetype fonts
directly anymore.

HTH,
Sebastian

-- 
Sebastian tokkee Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-03 Thread Teodor
tags 493575 confirmed
fixed 493575 1.3.1-2
kthxbye

On Sun, Aug 3, 2008 at 1:19 PM, Marc Storck [EMAIL PROTECTED] wrote:
 Package: librrd2
 Version: 1.2.28-1
 Severity: important


 Graphics produced with rrdtool using this version of librrd2 are without text.

The same problem here (in 'cacti' graphs). Although it doesn't affect
the new 1.3.x packages, it might be good to pin the problem and see if
there are any other consequences.

Thanks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#493575: since librrd2 1.2.28-1 rrdtool produces graphics without text

2008-08-03 Thread Marc Storck
Package: librrd2
Version: 1.2.28-1
Severity: important


Graphics produced with rrdtool using this version of librrd2 are without text.

Downgrading to a prior version of librrd2 fixes the issue.

Regards,

Marc

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages librrd2 depends on:
ii  libart-2.0-2   2.3.20-2  Library of functions for 2D graphi
ii  libc6  2.7-10GNU C Library: Shared libraries
ii  libfreetype6   2.3.7-1   FreeType 2 font engine, shared lib
ii  libpng12-0 1.2.27-1  PNG library - runtime
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

librrd2 recommends no packages.

librrd2 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]