FontFamily="{StaticResource myFont}" not work
mehdininja opened this issue · comments
Setting the font does not work in this way,
<Grid>
<lvc:CartesianChart Series="{Binding Series}" XAxes="{Binding XAxes}" YAxes="{Binding YAxes}" VisualElements="{Binding VisualElements}" TooltipPosition="Hidden" FontFamily="{StaticResource myFont}" FontWeight="Bold" Typography.StylisticSet4="True"/>
</Grid>
also in the C# code FontFamily is string property.
LabelsPaint = new SolidColorPaint(SKColors.Black) {FontFamily="", SKFontStyle = new SKFontStyle(SKFontStyleWeight.Bold, SKFontStyleWidth.Normal, SKFontStyleSlant.Upright)},
So how to apply FontFamily="{StaticResource myFont}" ?