Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KedamaOvO committed Aug 2, 2018
1 parent 4d02614 commit 209a03a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Gui/OverlayEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,14 @@ static SelectFontCommand()
{
string k = key.Replace(" (TrueType)", "");
string v = System.IO.Path.Combine(fontsdir, rk.GetValue(key).ToString()).ToLower();
_fontNameToFontPathDict.Add(k, v);
_fontPathToFontNameDict.Add(v, k);
try
{
_fontNameToFontPathDict.Add(k, v);
_fontPathToFontNameDict.Add(v, k);
}
catch (ArgumentException)
{
}
}
}

Expand Down

0 comments on commit 209a03a

Please sign in to comment.