From: oetiker Date: Sun, 1 May 2005 21:16:49 +0000 (+0000) Subject: DejaVuSansMono-Roman is a variant of VeraMono with lots of added unicode glyphes ... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=94ae951f7544740f84d6041df31a4ca84f4a1c0e;p=rrdtool.git DejaVuSansMono-Roman is a variant of VeraMono with lots of added unicode glyphes ... check out http://dejavu.sourceforge.net git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@469 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/DejaVuSansMono-Roman.ttf b/src/DejaVuSansMono-Roman.ttf new file mode 100644 index 0000000..691c8d6 Binary files /dev/null and b/src/DejaVuSansMono-Roman.ttf differ diff --git a/src/Makefile.am b/src/Makefile.am index 29e6924..6b5c808 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,7 +6,7 @@ #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config DEFS += -DMAKE_TIMESTAMP=\""$(shell date)"\" fontsdir = $(datadir)/rrdtool/fonts -fonts_DATA = VeraMono.ttf +fonts_DATA = DejaVuSansMono-Roman.ttf #INCLUDES = $(CGI_INCLUDES) $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ # $(PNG_INCLUDES) $(ZLIB_INCLUDES) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 630486e..2745ae9 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -30,7 +30,7 @@ #ifndef RRD_DEFAULT_FONT /* there is special code later to pick Cour.ttf when running on windows */ -#define RRD_DEFAULT_FONT "VeraMono.ttf" +#define RRD_DEFAULT_FONT "DejaVuSansMono-Roman.ttf" #endif text_prop_t text_prop[] = { @@ -2168,7 +2168,7 @@ graph_size_location(image_desc_t *im, int elements im->text_prop[TEXT_PROP_AXIS].font, im->text_prop[TEXT_PROP_AXIS].size, im->tabwidth, - "0", 0) * im->unitslength + im->text_prop[TEXT_PROP_AXIS].size * 2; + "0", 0) * im->unitslength + Xspacing; } }