Can't read True Type Font FIle in my WPF application!
I am developing a project in Wpf using Vista Sp1 on my laptop, in this project I add a True Type font that Windows Xp didn’t get and when I debug my project in Windows XP I cannot see the True Font File so I want to add into my project these fonts as resources, but I can't seem to do it. I followed all MSDN advice, but no luck ... for example, I added the INFROMAN.TTF font file (this font is the original Vista font file and remains in this C: Windows / Font directory) and in the text block I declare this line:
<TextBlock FontFamily="./Font/#INFROMAN"> Test.... </TextBlock>
but I don't see the font I want. Do you have any advice how I can add these True FOnt FIle as a resource to my project, so when I run my project on WIndows XP I can see the correct fonts ???
Thanks for your attention.
Greetings
source to share
I am trying this stupid error in a simple way :)
When I declare a font style directory, I have to insert the original name as "Nominal" but not the name like Visual Studio, for example in my case I added the "Informal Novel" font style to my project, so in XAML I need to write like this :
<TextBlock FontFamily="/Font/#Informal Roman"> TEST.....</TextBlock>
not the name that Visual Studio expresses in my project:
<TextBlock FontFamily="/Font/#INFROMAN"> TEST.....</TextBlock>
Do a good job.
Greetings
source to share