Primer paso
Agregar el archivo a la soluciónSegundo paso
Abrir el archivo y copiar el nombre de la fuenteÚltimo paso
Usarlo por cualquiera de las siguientes 2 maneras: <Grid Background="White">
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="In XAML" FontSize="60" FontFamily="/MGNORMAL.TTF#MagistralC" Margin="22" Foreground="Black"/>
<TextBlock x:Name="txb" Text="From C#" FontSize="60" Margin="22" Foreground="Black"/>
</StackPanel>
</Grid>
public sealed partial class MyTTFExample : UserControl
{
public MyTTFExample()
{
this.InitializeComponent();
Loaded += MyTTFExample_Loaded;
}
private void MyTTFExample_Loaded(object sender, RoutedEventArgs e)
{
this.txb.FontFamily = new FontFamily("/MGNORMAL.TTF#MagistralC");
}
}


Hi, I also used this method and added it as an embedded resource.
ResponderBorrar