Skip to content

Commit 25be441

Browse files
Set a different font for CJK languages. Fixes #4
1 parent 937bfd8 commit 25be441

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

Src/FinderOuter/ViewModels/OptionVmBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file LICENCE or http://www.opensource.org/licenses/mit-license.php.
55

6+
using Avalonia.Media;
67
using FinderOuter.Backend;
78
using FinderOuter.Models;
89
using FinderOuter.Services;
@@ -103,6 +104,8 @@ public DescriptiveItem<CompareInputType> SelectedCompareInputType
103104
set => this.RaiseAndSetIfChanged(ref _selCompType, value);
104105
}
105106

107+
public FontFamily CjkFont => FontFamily.Parse("Microsoft YaHei,Simsun,苹方-简,宋体-简");
108+
106109

107110
protected ObservableCollection<string>[] allItems;
108111

Src/FinderOuter/Views/MissingBip32PathView.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<Grid ColumnDefinitions="*,auto" RowDefinitions="auto,auto,auto">
1414
<TextBox Text="{Binding XKey}"
15+
FontFamily="{Binding CjkFont}"
1516
Watermark="Enter mnemonic or extended key here"
1617
Height="86"
1718
Grid.Column="0"

Src/FinderOuter/Views/MissingMnemonicPassView.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<Grid ColumnDefinitions="*,auto" RowDefinitions="auto,auto,auto,auto">
1414
<TextBox Text="{Binding Input}"
15+
FontFamily="{Binding CjkFont}"
1516
Watermark="Mnemonic (seed phrase), separate each word with a space"
1617
Height="86"
1718
Grid.Column="0"

Src/FinderOuter/Views/MissingMnemonicView.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<Grid ColumnDefinitions="*,auto" RowDefinitions="auto,auto,auto,auto">
1414
<TextBox Text="{Binding Input}"
15+
FontFamily="{Binding CjkFont}"
1516
Watermark="Mnemonic (seed phrase), separate each word with a space and replace missing words with the MissingChar"
1617
Grid.Column="0"
1718
Grid.Row="0"/>

0 commit comments

Comments
 (0)