Using the embedded font in the Windows Store app

I would like to use Anonymous pro font in a Windows RT application. I tried to follow the steps of this thread , but without any success.

This is my attempt:

<TextBlock Text="{Binding Title}" HorizontalAlignment="Center" FontSize="56" FontFamily="/Assets/Fonts/Anonymous Pro.ttf" /> 

Instead of anonymous Pro, the default font is used. Actually, this is a sample (see Link) where the font family is indicated, but I'm not sure whether I should do this or not. If I should, what family should be there?

So, how to embed a custom font in a Windows RT application and use it from there?

+4
source share
1 answer

here you go .. just added the font name .. blogged about it when I saw you post http://invokeit.wordpress.com/2012/10/18/embed-use-custom-font-in-windows-8- store-apps-win8dev-winrt /

+9
source

Source: https://habr.com/ru/post/1440481/


All Articles