Font List crashes

When the system has the something wrong or non-standard fonts, the font list/combo makes application crash.

I think you'd better to skip that font or show some message.

David

1 Reply

BA Balavasanth Syncfusion Team June 30, 2009 03:19 PM UTC

Hi David,

Thanks for choosing Syncfusion products.

Currently we did not come under the situation of passing the non standard fonts as source for the FontlistBox, any how we will ask our QA team to look in to this and we will try to implement a feature in such a way such issues will be fixed in the source level itself.

Anyhow as a workaround you can make use of the FontCollection to add or remove the fonts as per your requirement and set the collection as the Fontsource for the FontListbox. Kindly make use of the code snippet for more idea.

FontCollection collection = new FontCollection();
collection.Remove(new FontFamily("Albertus"));
collection.Add(new FontFamily("Tahoma"));
fontListBox.FontsSource = collection;

Please let us know if you have any queries.

Regards,
Bala.

Loader.
Up arrow icon