update cairo renderer to include text-transform 'captitalize' support

This commit is contained in:
Dane Springmeyer 2011-02-21 20:46:07 +00:00
parent a317c5d051
commit 9d351be091

View file

@ -1093,6 +1093,10 @@ void cairo_renderer_base::process(shield_symbolizer const& sym,
{ {
text = text.toLower(); text = text.toLower();
} }
else if ( sym.get_text_transform() == CAPITALIZE)
{
text = text.toTitle(NULL);
}
agg::trans_affine tr; agg::trans_affine tr;
boost::array<double,6> const& m = sym.get_transform(); boost::array<double,6> const& m = sym.get_transform();
@ -1523,6 +1527,10 @@ void cairo_renderer_base::process(text_symbolizer const& sym,
{ {
text = text.toLower(); text = text.toLower();
} }
else if ( sym.get_text_transform() == CAPITALIZE)
{
text = text.toTitle(NULL);
}
if (text.length() > 0) if (text.length() > 0)
{ {