mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-14 11:06:55 -04:00
Update src/static/js/pad_editor.js
use alternative monospace fonts on mac and windows when present
This commit is contained in:
parent
b82af40735
commit
f09ecf0b10
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ var padeditor = (function()
|
||||||
self.ace.setProperty("showsauthorcolors", !settings.noColors);
|
self.ace.setProperty("showsauthorcolors", !settings.noColors);
|
||||||
|
|
||||||
v = getOption('useMonospaceFont', false);
|
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");
|
$("#viewfontmenu").val(v ? "monospace" : "normal");
|
||||||
},
|
},
|
||||||
dispose: function()
|
dispose: function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue