Click to See Complete Forum and Search --> : Custom font for label


yoyosh
January 25th, 2010, 01:34 PM
I would like to display some label in custom font for which I have *.ttf file. So I added this file to solution to 'Resources' folder with build action set as a resource. Font`s name is Katana. Then I tried to set FontFamily of my label in this way:

<Label FontFamily="./Resources/#Katana">Importing data...</Label>

I tried many different combinations of that string but none of them worked. How to do that?

Thank you for help

boudino
January 26th, 2010, 02:17 AM
I think the font must be installed in Windows and avalable in system's Fonts folder. If you explore the folder, there is "Install new font" command in File menu.

yoyosh
January 26th, 2010, 03:10 AM
I don`t think so. In my opinion MSDN also states that this is not true: http://msdn.microsoft.com/en-us/library/ms753303.aspx .

Arjay
January 28th, 2010, 08:11 PM
I don`t think so. In my opinion MSDN also states that this is not true: http://msdn.microsoft.com/en-us/library/ms753303.aspx .What happens when you run the sample code from the link with the fonts from the sdk? Does it work?