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.
Unfortunately, activation email could not send to your email. Please try again.

Font List crashes

Thread ID:

Created:

Updated:

Platform:

Replies:

84072 Jun 29,2009 05:01 AM Jun 30,2009 11:19 AM WPF 1
loading
Tags: Tools
David Kim
Asked On June 29, 2009 05:01 AM

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

Balavasanth [Syncfusion]
Replied On June 30, 2009 11:19 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;