How to add Custom Fonts in for custom renderer entry?

Hardik.differenzHardik.differenz INMember
edited November 2016 in Xamarin.Forms

I've created custom renderer for entry tag and i would like to add custom fonts based on platform. i've applied following but its not working in iOS.

<CustomControl:CAEntry Placeholder="Username" PlaceholderColor="#99FFFFFF" BackgroundColor="#00FFFFFF" TextColor="White" HasBorder="false" TintColor="White" HeightRequest="40" Text="{Binding Username}"> <CAEntry.FontFamily> <OnPlatform x:TypeArguments="x:String" iOS="Roboto-Regular" Android="" WinPhone="" /> </CAEntry.FontFamily> </CustomControl:CAEntry>

As soon as i launch app in iOS simulator, app gets crashes. Can any one help with this?

Sign In or Register to comment.