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

Free Support Forum - aspose.com

Font not supported exception encountered when trying to auto-fit rows

Hi - I am trying to create a worksheet that contains some rows which are formatted using the Monotype Corsivo font. After populating cells I call auto-fit rows and I’m getting the following exception call stack:

System.ArgumentException: Font ‘Monotype Corsiva’ does not support style ‘Regular’.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font…ctor(String familyName, Single emSize)
at Aspose.Cells.xf0a3dde88cf2ccd4.xe0023d5154451d70(Graphics x41347a961b838962, Style x44ecfea61c937b8e, String xb41faee6912a2313, Single x9b0739496f8b5475, Int32 x32ca1035a437fde7)
at Aspose.Cells.xf0a3dde88cf2ccd4.x43a084dba38a9bc6(Graphics x41347a961b838962, Cells x77bb6a53fbd162d0, Int32 x6155c61fc47ceb1a, Int32 x433508a87b1e0cdf, Int32 xa364300db00bde74, Int32 x8e5bc30d03570f25)
at Aspose.Cells.xf0a3dde88cf2ccd4.x055656f5d767c02d(Cells x77bb6a53fbd162d0, Int32 x6155c61fc47ceb1a, Int32 x433508a87b1e0cdf, Int32 xa364300db00bde74, Int32 x8e5bc30d03570f25)
at Aspose.Cells.Worksheet.AutoFitRows()

I found a similar type of problem reported against Aspose.Grid which appears to still be unresolved.


Hi,

We found the issue related 'Monotype Corsiva', we will fix it soon.

Thank you.

Hi,

Please try the fix in <A href="</A>.</P> <P>We have fixed this bug.</P>