I created the Silverlight class library "HindiFont" and added the font "LM.ttf" (specified BuildAction=Resource) to it. Now I want to use this font in my main application "main.xap". I also use application library caching, so HindiFont.zip is created. So, how do I use the font that I specified in HindiFont.zip.
I tried the following combinations, but no one works.
<TextBlock x:Name="tDisplay" FontFamily="LM.TTF#MyName" ></TextBlock>
<TextBlock x:Name="tDisplay" FontFamily="HindiFont.dll;LM.TTF#MyName" ></TextBlock>
<TextBlock x:Name="tDisplay" FontFamily="HindiFont.zip;LM.TTF#MyName" ></TextBlock>
So let me know how to solve this problem.
source
share