![](/img/trans.png)
[英]Custom Fonts in Xamarin.Forms NavigationBar + ActionBar
[英]Default colors is not showing in fonts Xamarin.Forms
默認表情符號在我的 Xamarin.Forms 應用程序中運行良好,而且色彩豐富。 當我添加Twitter 顏色 fonts 時,它變成黑白(黑白)。 我遵循的這個程序。
初始化
[assembly: ExportFont( "TwitterColorEmoji.ttf", Alias = "TwitterColorEmoji" )]
這是 xaml 中的示例代碼
<!-- This is not working -->
<Label x:Name="emojilbl" Text="\U+1F1E9" Margin="20,0,0,0"></Label>
<Label
x:Name="emoji2lbl"
Text="🇦🇨"
Margin="20,0,0,0"
TextColor="#5EE514"
FontSize="40"
FontFamily="TwitterColorEmoji"></Label>
<!-- This is not working -->
<Image BackgroundColor="Black">
<Image.Source>
<FontImageSource
FontFamily="TwitterColorEmoji"
Glyph="🇦🇨"
Size="40"
>
</FontImageSource>
</Image.Source>
</Image>
<!-- This is working fine with default font -->
<Label Text="🇦🇨" Margin="20,0,0,0" FontSize="40"/>
為什么表情符號不顯示自己的顏色。 感謝高級的幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.