-
January 25th, 2010, 02:34 PM
#1
Custom font for label
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
-
January 26th, 2010, 03:17 AM
#2
Re: Custom font for label
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.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
January 26th, 2010, 04:10 AM
#3
Re: Custom font for label
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 .
-
January 28th, 2010, 09:11 PM
#4
Re: Custom font for label
Originally Posted by yoyosh
What happens when you run the sample code from the link with the fonts from the sdk? Does it work?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|