fix "Only TrueType fonts are supported. This is not a TrueType font."
This commit is contained in:
@@ -134,11 +134,19 @@ namespace Shadowsocks.View
|
||||
|
||||
private void ChangeFontButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
FontDialog fd = new FontDialog();
|
||||
fd.Font = LogMessageTextBox.Font;
|
||||
if (fd.ShowDialog() == DialogResult.OK)
|
||||
try
|
||||
{
|
||||
LogMessageTextBox.Font = fd.Font;
|
||||
FontDialog fd = new FontDialog();
|
||||
fd.Font = LogMessageTextBox.Font;
|
||||
if (fd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
LogMessageTextBox.Font = new Font(fd.Font.FontFamily, fd.Font.Size, fd.Font.Style);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logging.LogUsefulException(ex);
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user