locked
Embedding custom font not working help! RRS feed

  • Question

  • No idea why my app is not taking my custom font 

     I have a custom user control that is basically a button, i can change the font in expression blend and it previews fine - but when i run it it doesnt work.  This custom button is used for a custom menu so theres 2 places where i can change this font

    • in the button component of the custom control
    • or in each of the menu items

    Neither one works

    Expression blend still creates a /Font directory and i see it included in the project in visual studio, this custombutton is in its own directory called /Custom Controls, and it is in the same level as the font directory

    here is whats generated in the xaml

     

    <UserControl>

    <Some custom design stuff>

    <Button x:Name="_Button" Click="_Button_Click" Height="Auto" Style="{StaticResource NavButton}" Width="Auto" Foreground="#FFFF0000" Content="Button" BorderThickness="0,0,0,0" BorderBrush="{x:Null}" Background="{x:Null}" FontFamily="./../Fonts/Fonts.zip#Bosox Outline Heavy" FontStyle="Normal" d:IsStaticText="True" FontWeight="Bold" FontSize="14"/>
    </UserControl>


    Thanks much

    Friday, November 14, 2008 2:51 PM