[rrd-developers] [patch] [SVG] Support for CSS font families.

Tobias Oetiker tobi at oetiker.ch
Fri May 25 17:35:35 CEST 2007

Hi Alex,

thanks for your patch ... but, before you invest any further time
in altering 1.2.x please take a look at the svn trunk of rrdtool
development for 1.3 has started in earnest ...

regarding graphics, we will switch to cairo with 1.3 cairo comes
with its own svg support, so you may to the check cairo svg out
maybe this will solve all the problems you have with the curent
version (once it is implemented) ...

the same is true for pdf output, which will follow png output to
the point including support for truetype fonts and such ...

good things ahead ...


Today Alexander V Alekseev wrote:

> 		Hello!
> 	As specified in SVG 1.1 specification
> (http://www.w3.org/TR/SVG11/text.html#FontFamilyProperty), the only
> fonts you can rely upon are 5 CSS2 font families:
> 'serif', 'sans-serif', 'cursive', 'fantasy', 'monospace'
> (As specified at
> http://www.w3.org/TR/REC-CSS2/fonts.html#value-def-generic-family ).
> 	But RRD 1.2.15 considers all of them unknown. I've made a small
> patch (attached), which allows usage of those fonts for SVG output
> format. (Font metrics are taken from RRD_AFM_DEFAULT_FONT).
> 	This patch doesn't solve the general problem, that all font
> calculation should depend on output format. But this is just my first patch
> to rrd. ;-))
> 	Bye. Alex.

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902

More information about the rrd-developers mailing list