Run the sample below and then look at 'I', 'J', 'N' text.
These letters in the upper right corner are cut off.
So I adjuct the widthOut value.
sample)
Dali::Property::Map fontStyleMapSet;
fontStyleMapSet.Insert( "slant", "italic" );
TextLabel textLabelN = TextLabel::New( "ABCDEFGHIJKLMN\nOPQRSTUVWXYZ" );
textLabelN.SetAnchorPoint( AnchorPoint::TOP_LEFT );
textLabelN.SetProperty(TextLabel::Property::POINT_SIZE, 18.f);
textLabelN.SetPosition(100.f, 400.f);
textLabelN.SetProperty(TextLabel::Property::MULTI_LINE, true);
textLabelN.SetProperty( TextLabel::Property::FONT_STYLE, fontStyleMapSet );
stage.Add( textLabelN );
Change-Id: I95429189350546169ea4de2fb6f58f2a480324cb
return;
}
- widthOut = widthIn + static_cast<unsigned int>( absRadians * static_cast<float>( heightIn ) );
+ widthOut = widthIn + static_cast<unsigned int>( ceil ( absRadians * static_cast<float>( heightIn ) ) );
heightOut = heightIn;
// Allocate the buffer for the shear.