From edfc30775e94f359dba2594fd23039e18f648841 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@1399 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/doc/rrdgraph.pod | 42 +++++++++++++++++++++------------------- program/src/rrd_graph.h | 2 +- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/program/doc/rrdgraph.pod b/program/doc/rrdgraph.pod index 54fd5b0c..159d6aff 100644 --- a/program/doc/rrdgraph.pod +++ b/program/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/program/src/rrd_graph.h b/program/src/rrd_graph.h index 7e85cd63..0642d419 100644 --- a/program/src/rrd_graph.h +++ b/program/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.30.2