From f1f89b2a21468a9a6f90bfd77a5dfcbcb0b3c0c6 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Mon, 12 Jan 2026 06:42:56 +0200 Subject: #5278 Use correct font for unhighlighted segments --- indra/newview/llscripteditor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llscripteditor.cpp b/indra/newview/llscripteditor.cpp index 93244107ca..68c4077b89 100644 --- a/indra/newview/llscripteditor.cpp +++ b/indra/newview/llscripteditor.cpp @@ -254,7 +254,9 @@ LLScriptEditor::~LLScriptEditor() bool LLScriptEditor::postBuild() { gSavedSettings.getControl("LSLFontSizeName")->getCommitSignal()->connect(boost::bind(&LLScriptEditor::onFontSizeChange, this)); - return LLTextEditor::postBuild(); + bool result = LLTextEditor::postBuild(); + setFont(getScriptFont()); + return result; } void LLScriptEditor::draw() @@ -621,6 +623,7 @@ void LLScriptEditor::onFontSizeChange() { if (!mUseDefaultFontSize) { + setFont(getScriptFont()); needsReflow(); } } -- cgit v1.3