From f09ecf0b10954b904c6e50b176b40adf946a6ec1 Mon Sep 17 00:00:00 2001 From: nareshv Date: Wed, 5 Dec 2012 12:14:41 +0530 Subject: [PATCH] Update src/static/js/pad_editor.js use alternative monospace fonts on mac and windows when present --- src/static/js/pad_editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index 690dde377..75d409590 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -109,7 +109,9 @@ var padeditor = (function() self.ace.setProperty("showsauthorcolors", !settings.noColors); v = getOption('useMonospaceFont', false); - self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif")); + // use Ayuthaya font on MacOS Family, Consolas on Windows Family and Monospace on Linux Family + // for better readability of font + self.ace.setProperty("textface", (v ? "Ayuthaya, Consolas, monospace" : "Arial, sans-serif")); $("#viewfontmenu").val(v ? "monospace" : "normal"); }, dispose: function()