Skip to content

Commit

Permalink
Use Calibri for non-CJK characters in ship names
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuubari committed Nov 17, 2015
1 parent 1258cbf commit c9defe1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
20 changes: 13 additions & 7 deletions source/Grabacr07.KanColleViewer.Controls/Styles/Controls.Text.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,17 @@
Value="{DynamicResource ForegroundBrushKey}" />
</Style>








<FontFamily xmlns="http://schemas.microsoft.com/winfx/2006/xaml/composite-font"
LineSpacing="1.2"
x:Key="ShipNames">

<FontFamily.FamilyMaps>
<FontFamilyMap Unicode="3000-303F, 3040-309F, 30A0-30FF, FF00-FFEF, 4E00-9FAF"
Target="Meiryo"
Scale="1.0" />
<FontFamilyMap Unicode="0000-FFFF"
Target="Calibri, Segoe UI"
Scale="1.2" />
</FontFamily.FamilyMaps>
</FontFamily>
</ResourceDictionary>
2 changes: 1 addition & 1 deletion source/Grabacr07.KanColleViewer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.1.6.0")]
[assembly: AssemblyVersion("4.1.6.1")]
3 changes: 2 additions & 1 deletion source/Grabacr07.KanColleViewer/Views/Contents/Fleets.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,12 @@
Margin="4,0,10,0">
<Run Text="{Binding Ship.Info.Name, Mode=OneWay}"
FontSize="22"
FontFamily="{DynamicResource ShipNames}"
Style="{DynamicResource EmphaticTextElementStyleKey}" />
<TextBlock.ToolTip>
<TextBlock Margin="0,-2,0,0">
<Run Text="{Binding StatsToolTip, Mode=OneWay}"
FontSize="11" />
FontSize="11" />
</TextBlock>
</TextBlock.ToolTip>
</TextBlock>
Expand Down
2 changes: 2 additions & 0 deletions source/Grabacr07.KanColleViewer/Views/Contents/Overview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
ToolTipService.HorizontalOffset="-9"
ToolTipService.VerticalOffset="-3">
<Run Text="{Binding Ship.Info.Name, Mode=OneWay}"
FontFamily="{DynamicResource ShipNames}"
Style="{DynamicResource EmphaticTextElementStyleKey}" />
<LineBreak />
<Run Text="{Binding Ship.Info.ShipType.Name, Mode=OneWay}"
Expand All @@ -175,6 +176,7 @@
<TextBlock.ToolTip>
<TextBlock Margin="0,-2,0,0">
<Run Text="{Binding Ship.Info.Name, Mode=OneWay}"
FontFamily="{DynamicResource ShipNames}"
Style="{DynamicResource EmphaticTextElementStyleKey}" />
<LineBreak />
<Run Text="{Binding Ship.Info.ShipType.Name, Mode=OneWay}"
Expand Down

0 comments on commit c9defe1

Please sign in to comment.