add Segoe MDL2 font as assets: this font allows editable embedding

This commit is contained in:
Paddy Xu
2017-08-11 23:16:35 +03:00
parent 8e400e7ee5
commit 1c18890fbf
5 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles/ScrollBarStyleDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
<FontFamily x:Key="SegoeMDL2">./Fonts/#Segoe MDL2 Assets</FontFamily>
</ResourceDictionary>
</Application.Resources>
</Application>

View File

@@ -10,7 +10,7 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Control}">
<busyDecorator:SpinIcon FontFamily="Segoe MDL2 Assets" FontSize="40" Spin="True">&#xE72C;</busyDecorator:SpinIcon>
<busyDecorator:SpinIcon FontFamily="{StaticResource SegoeMDL2}" FontSize="40" Spin="True">&#xE72C;</busyDecorator:SpinIcon>
</ControlTemplate>
</Setter.Value>
</Setter>

BIN
QuickLook/Fonts/segmdl2.ttf Normal file

Binary file not shown.

View File

@@ -225,6 +225,9 @@
<Resource Include="Controls\GlassLayer\GaussianBlur.ps">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Content Include="Fonts\segmdl2.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="key.snk" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">

View File

@@ -57,7 +57,7 @@
<Setter Property="Width" Value="40" />
<Setter Property="Height" Value="32" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FontFamily" Value="Segoe MDL2 Assets" />
<Setter Property="FontFamily" Value="{StaticResource SegoeMDL2}" />
<Setter Property="Foreground" Value="{DynamicResource CaptionButtonIconForeground}" />
<Setter Property="Template">
<Setter.Value>