Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, Could possibly someone explain to me why font family is not changing no matter what Font family I choose? Here is my xaml code:

HTML
<TextBlock x:Name="nameTextBlcok" Grid.Row="4" HorizontalAlignment="Stretch" Margin="5,5,5,5"
           FontSize="20" TextAlignment="Justify" TextWrapping="Wrap" VerticalAlignment="Stretch"  DataContext="{Binding perosn}"
           Text="{Binding Name,Mode=TwoWay}"
FontFamily="Edwardian Script ITC">


As You can see font family is set to "Edwardian Script" and basically whatever I change it to is stays as standard font. Any Ideas?
Posted
Comments
Richard Deeming 31-Mar-15 15:55pm    
Is this a "Windows Desktop application" (WPF), or a "Windows app" (Metro/Modern/Store/Universal)?

Your code block works fine for me in a WPF application.
Reatellino 31-Mar-15 16:01pm    
universal app(windows phone). I have the same xaml code in windows app and works fine but not on phone version.
Sergey Alexandrovich Kryukov 31-Mar-15 23:17pm    
What makes you thinking that this font is installed? If you hard-code font family, how can you guarantee it after deployment?
—SA
Richard Deeming 1-Apr-15 6:37am    
Reatellino 1-Apr-15 13:58pm    
It's not hard coded. None of the font family work from properties. I don't know how to do something like embedding fonts but the point is, that it should work anyway. It's really annoying that such a simple thing for no reason is not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900