Closed mzy666888 closed 4 years ago
Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description: I use WPF(.net core)。 in app.xaml add FontFamily like this:
<FontFamily x:Key="Digital-7 Mono"> pack://application:,,,/IVFTempMonitor;component/Fonts/Digital7Mono-B1g5.ttf#Digital-7 Mono </FontFamily>
in mainwindow.xaml use like this:
<Border Grid.Row="1" Grid.Column="0" Margin="3" Background="{StaticResource BootstrapCyan}"> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource 'Digital-7 Mono'}" FontSize="40" Foreground="White" Text="{Binding One}" /> </Border>
Actual behavior:
Expected behavior: but it's not usable.
when I use WPF(.net framework),the code as the same. It's usable.
Minimal repro:
setting font file attribute as like up。it's can usable.
like this before, I set font file attribute :copy output directory : copy if newer.
Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description: I use WPF(.net core)。 in app.xaml add FontFamily like this:
in mainwindow.xaml use like this:
Actual behavior:
Expected behavior: but it's not usable.
when I use WPF(.net framework),the code as the same. It's usable.
Minimal repro: