diff src/txt-eng-ft.cc @ 12369:e23f4609d558 release-3-4-x

Move axes labels and title positioning to axes::properties
author Konstantinos Poulios <logari81@gmail.com>
date Thu, 03 Feb 2011 19:30:13 +0100
parents f8891edcfd35
children 22bc9ec80c2c
line wrap: on
line diff
--- a/src/txt-eng-ft.cc	Thu Feb 03 12:47:05 2011 +0100
+++ b/src/txt-eng-ft.cc	Thu Feb 03 19:30:13 2011 +0100
@@ -474,6 +474,16 @@
   return extent;
 }
 
+Matrix
+ft_render::get_extent (const std::string& txt, double rotation)
+{
+  text_element *elt = text_parser_none ().parse (txt);
+  Matrix extent = get_extent (elt, rotation);
+  delete elt;
+  
+  return extent;
+}
+
 int
 ft_render::rotation_to_mode (double rotation) const
 {