Unable to set Font face in UWP sample
Hi Team,
I attempted to set the font face, but I was unable to do so. It happens to the font families that are already available on my machine. I tried to set the font family to 'Arial Black,' but it wasn't applied. While I could set the font to 'Arial,' I couldn't set it to 'Arial Black.' The fonts seem to apply, but the specific font face does not.
Example code:
<TextBlock x:Name="txtBlock" FontFamily="Arial Black" HorizontalAlignment="Center" Margin="10,10,0,0" TextWrapping="Wrap" Text="This is test Text Block" VerticalAlignment="Center" FontSize="36"/>
Windows SDK: Windows10, version 10.0.19041
We have also tried to add the font family from the code behind but it also does not work
txtBlock.FontFamily= new FontFamily("Arial Black");
Expected Arial black output
I have attached a sample for replication.
Kindly let me know if you need more information.
https://drive.google.com/file/d/1fyG2zXTWLvqmoKS5aNQWDBslCYDBvP32/view?usp=drive_link