From 5568cce5a2ef76e7bb3d4a8e781305fd9638bc35 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 3 Aug 2007 19:17:13 +0000 Subject: [PATCH] added notes on pango inline formatting git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1180 a5681a0c-68f1-0310-ab6d-d61299d08faa --- doc/rrdgraph_graph.pod | 135 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/doc/rrdgraph_graph.pod b/doc/rrdgraph_graph.pod index c7ca4fa..abd5287 100644 --- a/doc/rrdgraph_graph.pod +++ b/doc/rrdgraph_graph.pod @@ -364,6 +364,141 @@ characters or the sequence B<\t> to line-up legend elements. Note that the tabs inserted are relative to the start of the current legend element! +Since RRDtool 1.3 is using Pango for rending text, you can use Pango markup. +Pango uses the xml B tags for inline formatting instructions.: + +A simple example of a marked-up string might be: + + Blue text is cool! + +The complete list of attributes for the span tag (taken from the pango documentation): + +=over + +=item B + +A font description string, such as "Sans Italic 12"; note that any other span attributes will override this description. So if you have "Sans Italic" and also a style="normal" attribute, you will get Sans normal, not italic. + +=item B + +A font family name + +=item B + +Synonym for font_family + +=item B + +Font size in 1024ths of a point, or one of the absolute sizes 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', or one of the relative sizes 'smaller' or 'larger'. If you want to specify a absolute size, it's usually easier to take advantage of the ability to specify a partial font description using 'font_desc'; you can use font_desc='12.5' rather than size='12800'. + +=item B