From 9d351be091f8736939f6d30ba223c41575bf37c7 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 21 Feb 2011 20:46:07 +0000 Subject: [PATCH] update cairo renderer to include text-transform 'captitalize' support --- src/cairo_renderer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp index 3ac150add..e31133fa8 100644 --- a/src/cairo_renderer.cpp +++ b/src/cairo_renderer.cpp @@ -1093,6 +1093,10 @@ void cairo_renderer_base::process(shield_symbolizer const& sym, { text = text.toLower(); } + else if ( sym.get_text_transform() == CAPITALIZE) + { + text = text.toTitle(NULL); + } agg::trans_affine tr; boost::array const& m = sym.get_transform(); @@ -1523,6 +1527,10 @@ void cairo_renderer_base::process(text_symbolizer const& sym, { text = text.toLower(); } + else if ( sym.get_text_transform() == CAPITALIZE) + { + text = text.toTitle(NULL); + } if (text.length() > 0) {