src/Tools/jEdit/src/jedit_options.scala
changeset 61607 a99125aa964f
parent 60844 f7f2bc0e4293
child 61742 fd3b214b0979
--- a/src/Tools/jEdit/src/jedit_options.scala	Mon Nov 09 21:04:49 2015 +0100
+++ b/src/Tools/jEdit/src/jedit_options.scala	Mon Nov 09 22:16:04 2015 +0100
@@ -9,7 +9,7 @@
 
 import isabelle._
 
-import java.awt.Color
+import java.awt.{Font, Color}
 import javax.swing.{InputVerifier, JComponent, UIManager}
 import javax.swing.text.JTextComponent
 
@@ -91,7 +91,8 @@
         val default_font = UIManager.getFont("TextField.font")
         val text_area =
           new TextArea with Option_Component {
-            if (default_font != null) font = default_font
+            if (default_font != null) font =
+              new Font(default_font.getFamily, default_font.getStyle, default_font.getSize)
             name = opt_name
             val title = opt_title
             def load = text = value.check_name(opt_name).value