Click here to Skip to main content
15,559,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am facing Embedded Font Problem in xamarin form.
once i creating a code and set the build action Embedded Action in property.
and run the application so image is not displaying .i am sending my codes please check why image is not displaying
my class name is FontIcon.cs
please check

What I have tried:


[assembly:ExportFont("MyMeterialFile.ttf", Alias = "IconFont")]

<StackLayout VerticalOptions="CenterAndExpand">
          <Image VerticalOptions="CenterAndExpand">
                  <FontImageSource Color="Black" Size="88" Glyph="{x:Static local:IconFont.AccessPoint}" FontFamily="IconFont"></FontImageSource>
Updated 11-Nov-20 8:13am

1 solution

Font icons can only currently be specified by their unicode character representation.

Fonts in Xamarin.Forms - Xamarin | Microsoft Docs[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900