Search code examples
windows-8windows-runtimeembedded-fonts

Use embedded font in Windows Store App


I would like to use Anonymous Pro font in a Windows RT application. I was trying to follow the steps from this thread, but without any success.

This is my try:

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

Instead of Anonymous Pro the default font is used. Actually, it the sample (see the link) the font family is specified, but I'm not sure: should I do it or should not. If I should, which family should be there?

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


Solution

  • here you go.. just appened 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/