From 38969497cbccacf2999d92b06a85946c1f71be05 Mon Sep 17 00:00:00 2001 From: Chirag Manwani Date: Wed, 17 Feb 2016 02:52:45 +0530 Subject: tdf#97640 Fixed-Width Font for Beanshell Editor Change-Id: I809253a4f0481c825368d9c608cac77e64376aa0 Reviewed-on: https://gerrit.libreoffice.org/22404 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- .../sun/star/script/framework/provider/beanshell/PlainSourceView.java | 1 + 1 file changed, 1 insertion(+) (limited to 'scripting/java') diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java index 34aac4cfe6ba..91e7b9144ca4 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java @@ -98,6 +98,7 @@ public class PlainSourceView extends JScrollPane implements ta.setColumns(40); ta.setLineWrap(false); ta.insert(model.getText(), 0); + ta.setFont(new Font(Font.MONOSPACED, ta.getFont().getStyle(), ta.getFont().getSize())); linecount = ta.getLineCount(); gg = new GlyphGutter(this); -- cgit