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

