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:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi