From ae6fbf3591f5f809487171f6dfe7180a1573da3b Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 5 Jun 2008 19:58:51 +0000 Subject: [PATCH] disable pango markup by default. added --pango-markup option for explicit enablement. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1399 a5681a0c-68f1-0310-ab6d-d61299d08faa --- doc/rrdgraph.pod | 42 ++++++++++++++++++++++-------------------- src/rrd_graph.h | 2 +- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/doc/rrdgraph.pod b/doc/rrdgraph.pod index 54fd5b0..159d6af 100644 --- a/doc/rrdgraph.pod +++ b/doc/rrdgraph.pod @@ -346,6 +346,28 @@ This specifies the largest font size which will be rendered bitmapped, that is, without any font smoothing. By default, no text is rendered bitmapped. +[B<-P>|B<--pango-markup>] + +All text in rrdtool is rendered using Pango. With the B<--pango-markup> option, all +text will be processed by pango markup. This allows to embed some simple html +like markup tags using + + text + +Apart from the verbose syntax, there are also the following short tags available. + + b Bold + big Makes font relatively larger, equivalent to + i Italic + s Strikethrough + sub Subscript + sup Superscript + small Makes font relatively smaller, equivalent to + tt Monospace font + u Underline + +More details on L. + [B<-G>|B<--graph-render-mode> {B,B}] There are 2 render modes: @@ -417,26 +439,6 @@ You need at least one graph element to generate an image and/or at least one print statement to generate a report. See L for the exact format. -=item Markup - -All text in rrdtool is rendered using Pango markup. This means text can contain embeded markup instructions. -Simple html markup using - - text - -can be used. Apart from the verbose syntax, there are also the following short tags available. - - b Bold - big Makes font relatively larger, equivalent to - i Italic - s Strikethrough - sub Subscript - sup Superscript - small Makes font relatively smaller, equivalent to - tt Monospace font - u Underline - -More details on http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html. =back diff --git a/src/rrd_graph.h b/src/rrd_graph.h index 7e85cd6..0642d41 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -219,7 +219,7 @@ typedef struct image_desc_t { double force_scale_max; /* Force a scale--max */ /* status information */ - + int with_markup; long xorigin, yorigin; /* where is (0,0) of the graph */ long ximg, yimg; /* total size of the image */ size_t rendered_image_size; -- 2.11.0