Linux: Fixed monospace font to use "monospace"
Matches recent Mesen-side change
This commit is contained in:
parent
42015e9f8c
commit
cf745e1faf
2 changed files with 1 additions and 10 deletions
|
@ -15,7 +15,7 @@ namespace Mesen.GUI.Controls
|
|||
get
|
||||
{
|
||||
if(Program.IsMono) {
|
||||
return "DroidSansMono";
|
||||
return "monospace";
|
||||
} else {
|
||||
return "Consolas";
|
||||
}
|
||||
|
|
|
@ -111,15 +111,6 @@ namespace Mesen.GUI
|
|||
} else if(entry.Name == "Font.24.spritefont" || entry.Name == "Font.64.spritefont" || entry.Name == "LICENSE.txt" || entry.Name == "PixelFont.ttf") {
|
||||
string outputFilename = Path.Combine(ConfigManager.HomeFolder, "Resources", entry.Name);
|
||||
ExtractFile(entry, outputFilename);
|
||||
} else if(entry.Name == "DroidSansMono.ttf" && Program.IsMono) {
|
||||
string outputFilename = Path.Combine(ConfigManager.FontFolder, entry.Name);
|
||||
bool needRestart = !File.Exists(outputFilename);
|
||||
ExtractFile(entry, outputFilename);
|
||||
if(needRestart) {
|
||||
//If font is newly installed, restart Mesen (otherwise debugger will not be able to use the font and display incorrectly)
|
||||
ConfigManager.RestartMesen();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue