Can't display "Wingding 3" font [modified]
-
I need to display several characters from the Wingdings 3 font family. That's the name of the font family, not the name of the True Type font family file. What I did was copy the wingdng3.ttf file to my project root and made sure that its BuildAction was set to Resource. Then in my XAML I use this syntax to display a single character at the beginning of a TextBlock:
<TextBlock
Name="section1Title"
>
<Run FontFamily="WingDng3.ttf#Wingdings 3"></Run> Help on the tutorials
</TextBlock>When displayed in my application, the wingding character appears as a square, just as in the above markup, but you'd expect that in the markup. But appearing as a square in the running Silverlight application indicates that the font family I chose for it was not located. What am I doing wrong? Edit: Upon further investigation I discovered that my "expectation" about the display of the markup was wrong. If the font can be displayed, it is displayed properly in the markup, at least in VS2010. Nevertheless, I still don't know how to get VS2010 to display an embedded font.
modified on Tuesday, May 18, 2010 6:12 PM