summaryrefslogtreecommitdiff
path: root/src/static/js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-04-05 14:03:09 +0100
committerJohn McLear <john@mclear.co.uk>2015-04-05 14:03:09 +0100
commit41bb4ef094ebd22c5d0068dd9e0ca13816519c81 (patch)
tree6ed4028734921930a724d82ebd6a2348b2c775c3 /src/static/js
parente49bb4017c5cd054ca2b1880c78148e10417de1f (diff)
downloadetherpad-lite-41bb4ef094ebd22c5d0068dd9e0ca13816519c81.zip
support for open dyslexic font
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/pad.js2
-rw-r--r--src/static/js/pad_editor.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index 5ac9d03d..f1de80f0 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -581,7 +581,7 @@ var pad = {
pad.changeViewOption('rtlIsTrue', true);
}
- var fonts = ['useMonospaceFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
+ var fonts = ['useMonospaceFont', 'useOpenDyslexicFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
'useSerifFont'];
diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js
index ca7dc2b0..b1ea09f7 100644
--- a/src/static/js/pad_editor.js
+++ b/src/static/js/pad_editor.js
@@ -30,7 +30,7 @@ var padeditor = (function()
var settings = undefined;
// Array of available fonts
- var fonts = ['useMonospaceFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
+ var fonts = ['useMonospaceFont', 'useOpenDyslexicFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
'useSerifFont'];
@@ -163,6 +163,7 @@ var padeditor = (function()
font = font.replace("Font","");
font = font.toLowerCase();
if(font === "monospace") self.ace.setProperty("textface", "Courier new");
+ if(font === "opendyslexic") self.ace.setProperty("textface", "OpenDyslexic");
if(font === "comicsans") self.ace.setProperty("textface", "Comic Sans MS");
if(font === "georgia") self.ace.setProperty("textface", "Georgia");
if(font === "impact") self.ace.setProperty("textface", "Impact");