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.
Syncfusion Feedback

iOS crash when setting font sizes

Thread ID:

Created:

Updated:

Platform:

Replies:

117603 Nov 14,2014 05:24 AM Nov 25,2014 11:47 PM Xamarin.Forms 4
loading
Tags: SfChart
Steen Steiniche
Asked On November 14, 2014 05:24 AM

I have a problem setting font sizes if SfChart for iOS. An example:

chart.Title = new ChartTitle
{
TextAlignment = TextAlignment.Center,
Text = "Title text",
Font = Font.SystemFontOfSize(12)
};


The Font.SystemOfSize makes my iOS app crash - it works if i comment the line out. What am I doing wrong?

Prabakaran R [Syncfusion]
Replied On November 14, 2014 05:45 AM

Hi Steen,


Sorry about the inconvenience caused. 

 

We are able to reproduce the issue in iOS Xamarin.Forms. We will fix this issue in our next service pack release which is expected to be rolled out in the end of November, 2014. However, we have provided workaround for this issue in the below forum thread,


http://www.syncfusion.com/forums/117472/charttitle-font


Please let us know if you have any queries.


Thanks,

Prabakaran



Miha Markic
Replied On November 20, 2014 07:11 AM

A workaround I've found is to use Font.OfSize("Arial", size) or, I guess, other font families might work as well.

Suresh B [Syncfusion]
Replied On November 20, 2014 08:42 AM

Hi Steen,

Yes. You can provide all the platform specific font families, please refer the following code snippet,
 
Code snippet [C#]:
 
Font font = Device.OnPlatform(
iOS:      Font.OfSize ("MarkerFelt-Thin", 18),
Android:  Font.OfSize ("Droid Sans Bold", 18),
WinPhone: Font.OfSize ("Courier New", 18)
);
chart.Title = new ChartTitle(){ Text = " Chart Header", Font =font};
  
Please let us know if you require further assistance on this.

Thanks,
Suresh B.


Suresh B [Syncfusion]
Replied On November 25, 2014 11:47 PM

Hi Steen,

 

We are glad to announce that our Service pack 1 for Vol 3 2014 is rolled out and is available for download under the following link.

 

http://www.syncfusion.com/forums/117667/essential-studio-2014-volume-3-service-pack-release-v12-3-0-38-available-for-download

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Suresh B


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.

Warning Icon 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.Close Icon

;