mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Don't setFont(Consolas) - it's windows only. Fix monospace for scintilla
This commit is contained in:
@@ -242,7 +242,6 @@ void ConfigureSyntax(ScintillaEdit *scintilla, int language)
|
||||
}
|
||||
|
||||
scintilla->setLexer(language);
|
||||
scintilla->styleSetFont(STYLE_DEFAULT, "Consolas");
|
||||
scintilla->styleSetSize(STYLE_DEFAULT, 10);
|
||||
|
||||
if(language == SCLEX_CPP)
|
||||
|
||||
@@ -45,7 +45,8 @@ PythonShell::PythonShell(ICaptureContext &ctx, QWidget *parent)
|
||||
|
||||
scriptEditor = new ScintillaEdit(this);
|
||||
|
||||
scriptEditor->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
|
||||
scriptEditor->styleSetFont(
|
||||
STYLE_DEFAULT, QFontDatabase::systemFont(QFontDatabase::FixedFont).family().toUtf8().data());
|
||||
|
||||
scriptEditor->setMarginLeft(4);
|
||||
scriptEditor->setMarginWidthN(0, 32);
|
||||
|
||||
@@ -569,7 +569,8 @@ ScintillaEdit *ShaderViewer::MakeEditor(const QString &name, const QString &text
|
||||
ret->setMarginWidthN(2, 16);
|
||||
ret->setObjectName(name);
|
||||
|
||||
ret->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
|
||||
ret->styleSetFont(STYLE_DEFAULT,
|
||||
QFontDatabase::systemFont(QFontDatabase::FixedFont).family().toUtf8().data());
|
||||
|
||||
// C# DarkGreen
|
||||
ret->indicSetFore(INDICATOR_REGHIGHLIGHT, SCINTILLA_COLOUR(0, 100, 0));
|
||||
|
||||
Reference in New Issue
Block a user