Bug 57942 - Custom controls are not rendered in XAML previewer for Forms.Android platform if we access custom font from assets folder
Summary: Custom controls are not rendered in XAML previewer for Forms.Android platform...
Status: RESOLVED DUPLICATE of bug 57417
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: 4.5.0 (15.2)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-05 13:34 UTC by Divakar
Modified: 2017-07-11 15:32 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Custom controls are not rendered in XAML previewer for Forms.Android platform (169.46 KB, application/x-zip-compressed)
2017-07-05 13:34 UTC, Divakar
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 57417

Description Divakar 2017-07-05 13:34:11 UTC
Created attachment 23300 [details]
Custom controls are not rendered in XAML previewer for Forms.Android platform

Hi Team,

The custom controls are not rendered in XAML previewer for Forms.Android platform if we set the font for the custom controls which is accessed from the assets folder.

In our sample, we have written renderer for the CustomLabel in Android platform and set custom font which is accessed from the asset folder for the native view of the corresponding custom control i.e. here native view is "TextView".

We have attached the issue reproduced sample for your reference. Also, please note the custom control is rendered properly in XAML previewer for iOS platform.

Regards,
Divakar.
Comment 1 Jimmy [MSFT] 2017-07-06 22:36:39 UTC
This is a potential duplicate of bug 57417
Comment 2 Pierce Boggan [MSFT] 2017-07-11 15:32:05 UTC
Thanks so much for taking the time to file this bug, @Divakar! :)

As @Jimmy mentioned, this is caused by an issue where the Forms Previewer cannot render custom fonts. I'm marking this bug as a duplicate of that one; once that bug is resolved, this one should be as well (as they have the same underlying root problem).

*** This bug has been marked as a duplicate of bug 57417 ***