We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Exception using Monotype Corsiva Fontname

Hi, I'm changing the fontname of my grid and if I choose Monotype Corsiva the cells go red and the text changes to "Exception". In the CellStyle sample I get an error Invalid Property. I don't get this problem for any other font installed on my machine. Can anyone give me any idea why this happens? Thanks, Sue

1 Reply

AD Administrator Syncfusion Team April 28, 2003 05:50 AM UTC

The reason you are seeing this is that Monotype Corsiva does not support regular font. You also need to set Italic. With the upcoming 1.6 release the error is handled a little better, but it still throws an exception at that point. If you wanted to catch this error, then one way would be to derive your grid, override OnDrawItem and put the call to the base class in a try block.

Loader.
Live Chat Icon For mobile
Up arrow icon