Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FontFamily="{StaticResource myFont}" not work #1518

Open
mehdininja opened this issue May 21, 2024 · 0 comments
Open

FontFamily="{StaticResource myFont}" not work #1518

mehdininja opened this issue May 21, 2024 · 0 comments

Comments

@mehdininja
Copy link

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}" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant