Reputation: 929
I am new to Windows Phone 8 Application, and I am trying to develop an application which displays text in Malayalam font. I used
<TextBlock x:Name="textBlock" Text= "വിദ്യയ്ക്ക് " TextWrapping="Wrap" FontSize="25" FontFamily="/PhoneApp1;component/Fonts/FontName.ttf#FontName" />
It shows text " വിദ്യയ്ക്ക് " in Design mode. But when i run it it shows text in &#[3381]; .what should i do to show Malayalam font . I have set Build Action as Content for font file. Any one knows the answer please help me Regards, Pranav J Dev
Upvotes: 0
Views: 152
Reputation: 896
I am using this to display my own font:
<TextBlock Text="വ"
FontFamily="/Assets/FontName.ttf#FontName"/>
The font itself is located within the Assets folder just below the root. The font file has build action "Content" and "Do no copy" to output directory.
I tried a similar approach as you before, but this did not work too. That's why I came up with this solution after some try/error attempts.
Upvotes: 1