update cairo renderer to include text-transform 'captitalize' support
This commit is contained in:
parent
a317c5d051
commit
9d351be091
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue