Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
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:

in
assembly:ExportFont

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


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

1 solution

Quote:
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