diff options
author | Jan Holub <Jan-Holub@gmx.net> | 2017-06-21 23:44:23 +0200 |
---|---|---|
committer | Jan Holub <Jan-Holub@gmx.net> | 2017-06-21 23:44:23 +0200 |
commit | 7029248a76a590e2f130bde71fe2bbfb2c032bbb (patch) | |
tree | fc316ea6742a565a80674dada5de7c66625ab165 /src/static/js/pad_editor.js | |
parent | 9f51432175c55deb4da54075351dc870a0b35808 (diff) | |
download | etherpad-lite-7029248a76a590e2f130bde71fe2bbfb2c032bbb.zip |
Added RobotoMono as a more modern and pretty monospaced font, addressing #3201
I added RobotoMono-Regular and RobotoMono-Bold as TrueTypeFont files and included them into the list. I tred to stay in alphabetical order where possible.
The author of #3201 was asking for a more modern monospaced font.
Diffstat (limited to 'src/static/js/pad_editor.js')
-rw-r--r-- | src/static/js/pad_editor.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index 3e6b49d3..a1a901cb 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -1,5 +1,5 @@ /** - * This code is mostly from the old Etherpad. Please help us to comment this code. + * This code is mostly from the old Etherpad. Please help us to comment this code. * This helps other people to understand this code better and helps them to improve it. * TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED */ @@ -31,7 +31,7 @@ var padeditor = (function() // Array of available fonts var fonts = ['useMonospaceFont', 'useOpenDyslexicFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont', - 'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont', + 'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useRobotoMonoFont', 'useTahomaFont', 'useTimesNewRomanFont', 'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont', 'useSerifFont']; @@ -102,7 +102,7 @@ var padeditor = (function() pad.changeViewOption(font, $("#viewfontmenu").val() == sfont); }); }); - + // Language html10n.bind('localized', function() { $("#languagemenu").val(html10n.getLanguage()); @@ -168,6 +168,7 @@ var padeditor = (function() if(font === "lucida") self.ace.setProperty("textface", "Lucida,'Lucida Serif','Lucida Bright',serif"); if(font === "lucidasans") self.ace.setProperty("textface", "'Lucida Sans','Lucida Grande','Lucida Sans Unicode','Luxi Sans',sans-serif"); if(font === "palatino") self.ace.setProperty("textface", "Palatino,'Palatino Linotype','URW Palladio L',Georgia,serif"); + if(font === "robotomono") self.ace.setProperty("textface", "RobotoMono"); if(font === "tahoma") self.ace.setProperty("textface", "Tahoma,sans-serif"); if(font === "timesnewroman") self.ace.setProperty("textface", "'Times New Roman',Times,serif"); if(font === "trebuchet") self.ace.setProperty("textface", "'Trebuchet MS',sans-serif"); |