src/Tools/jEdit/src/jedit_options.scala
changeset 61742 fd3b214b0979
parent 61607 a99125aa964f
child 62227 6eeaaefcea56
--- a/src/Tools/jEdit/src/jedit_options.scala	Mon Nov 23 18:05:33 2015 +0100
+++ b/src/Tools/jEdit/src/jedit_options.scala	Mon Nov 23 19:51:33 2015 +0100
@@ -88,11 +88,10 @@
           def save = bool(opt_name) = selected
         }
       else {
-        val default_font = UIManager.getFont("TextField.font")
+        val default_font = GUI.copy_font(UIManager.getFont("TextField.font"))
         val text_area =
           new TextArea with Option_Component {
-            if (default_font != null) font =
-              new Font(default_font.getFamily, default_font.getStyle, default_font.getSize)
+            if (default_font != null) font = default_font
             name = opt_name
             val title = opt_title
             def load = text = value.check_name(opt_name).value