[rrd-users] RRD::graph with UTF-8 (non-latin1) fonts?

vaclav.vobornik at aliatel.cz vaclav.vobornik at aliatel.cz
Mon Nov 1 18:10:12 MET 2004


Hi,
I try to create graph with text using some characters in UTF-8 encoding, but without success.
Using todays CVS snapshot and this code:

 RRDs::graph ("$homedir/http/graphs/seo.$refd->{id}.kw.$ref->{period}.png",
        "--font","TITLE:13:/opt/freetype2/fonts/times.ttf",
        "--title", $refd->{kw} ." @ ". $refd->{web}. " $ref->{title} T". chr(0x3a) . chr(0xc3) . chr(0xa1) ,
        "--start", $ref->{start},
        "--end", "now+12h",
        "--imgformat","PNG",
        "--width=400 ",
...etc.


(string "T". chr(0x3a) . chr(0xc3) . chr(0xa1) is for test purposes only and it should display "T:á" text). You can see the result at http://www.nsmon.com/graphs/seo.10.kw.m.png


 

When I try to create image using GD/freetype2 and the_same_font on the_same_machine, 
it works ok (http://www.cernovlaska.cz/gross.php?gross=T%3A%C3%A1) 


It is possible to force RRD work with utf-8 fonts?

Thank you

Vaclav Vobornik

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list