我对这两件事都有疑问。我想要新的字体,但它根本不起作用。我将.ttf添加到Assets并且我已将构建操作更改为AndroidAsset
我的Xaml代码
<Label Text="My Challenges" TextColor="#000000" BackgroundColor="#80FFFFFF" FontSize="20" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" x:Name="Lab">
<Label.FontFamily>
<OnPlatform x:TypeArguments="x:String">
<OnPlatform.Android>BLOODSUC.TTF#BLOODSUC</OnPlatform.Android>
</OnPlatform>
</Label.FontFamily>
<Label.Effects>
<local:ShadowEffects Radius="10" DistanceX="5" DistanceY="5">
<local:ShadowEffects.Color>
<OnPlatform x:TypeArguments="Color">
<On Platform="iOS" Value="Black" />
<On Platform="Android" Value="#c4babb" />
<On Platform="UWP" Value="Red" />
</OnPlatform>
</local:ShadowEffects.Color>
</local:ShadowEffects>
</Label.Effects>
</Label>