We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

FitShapeToText

Hello,

if i use fitShapeToText = true and another font then default arial it seems that the size calculation of the textframe is wrong.
What should I do to get a correct sized textframe?

Maybe this old thread is related.

Best regards

Hi,

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>Thanks for
considering Aspose.Slides.

You are right that this is the issue pointed out by one of our customer but development team marked this not a bug in Aspose.Slides.

The source of the problem is difference between text rendering in GDI
and GDI+. MS Office applications use standard GDI for text rendering.
.NET framework uses GDI+.

I’d offer possible solution which should always work.
It’s
necessary to create separate Paragraph for each text line and disable
text wrapping after the whole TextFrame will be filled with text.

Kind Regards