45 mImage =
new QImage( 10, 10, QImage::Format_ARGB32_Premultiplied );
46 mImage->setDotsPerMeterX( 96 / 25.4 * 1000 );
47 mImage->setDotsPerMeterY( 96 / 25.4 * 1000 );
48 mPainter =
new QPainter( mImage );
82 QString text = g->
text();
91 for (
int i = 0; i < 4; ++i )
103 bool prependSymb =
false;
129 symb = symb + wrapchr;
134 symb = wrapchr + symb;
147 txt = txt.replace( wrapchr,
"\\P" );
151 txt.prepend(
"\\L" ).append(
"\\l" );
156 txt.prepend(
"\\O" ).append(
"\\o" );
161 txt.prepend(
"\\K" ).append(
"\\k" );
164 txt.prepend( QString(
"\\f%1|i%2|b%3;\\H%4;\\W0.75;" )
166 .arg( tmpLyr.
textFont.italic() ? 1 : 0 )
167 .arg( tmpLyr.
textFont.bold() ? 1 : 0 )
168 .arg( label->
getHeight() / ( 1 + txt.count(
"\\P" ) ) * 0.75 ) );