support for open dyslexic font
This commit is contained in:
parent
e49bb4017c
commit
41bb4ef094
|
@ -38,6 +38,7 @@
|
||||||
"pad.settings.rtlcheck": "Read content from right to left?",
|
"pad.settings.rtlcheck": "Read content from right to left?",
|
||||||
"pad.settings.fontType": "Font type:",
|
"pad.settings.fontType": "Font type:",
|
||||||
"pad.settings.fontType.normal": "Normal",
|
"pad.settings.fontType.normal": "Normal",
|
||||||
|
"pad.settings.fontType.opendyslexic": "Open Dyslexic",
|
||||||
"pad.settings.fontType.monospaced": "Monospace",
|
"pad.settings.fontType.monospaced": "Monospace",
|
||||||
"pad.settings.fontType.comicsans": "Comic Sans",
|
"pad.settings.fontType.comicsans": "Comic Sans",
|
||||||
"pad.settings.fontType.couriernew": "Courier New",
|
"pad.settings.fontType.couriernew": "Courier New",
|
||||||
|
|
|
@ -1284,3 +1284,9 @@ input[type=checkbox] {
|
||||||
.hideControlsEditbar{
|
.hideControlsEditbar{
|
||||||
display:none !important;
|
display:none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: opendyslexic;
|
||||||
|
src: url("../font/opendyslexic.otf") format("opentype");
|
||||||
|
}
|
||||||
|
|
Binary file not shown.
|
@ -581,7 +581,7 @@ var pad = {
|
||||||
pad.changeViewOption('rtlIsTrue', true);
|
pad.changeViewOption('rtlIsTrue', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
var fonts = ['useMonospaceFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
|
var fonts = ['useMonospaceFont', 'useOpenDyslexicFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
|
||||||
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
|
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
|
||||||
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
|
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
|
||||||
'useSerifFont'];
|
'useSerifFont'];
|
||||||
|
|
|
@ -30,7 +30,7 @@ var padeditor = (function()
|
||||||
var settings = undefined;
|
var settings = undefined;
|
||||||
|
|
||||||
// Array of available fonts
|
// Array of available fonts
|
||||||
var fonts = ['useMonospaceFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
|
var fonts = ['useMonospaceFont', 'useOpenDyslexicFont', 'useComicSansFont', 'useCourierNewFont', 'useGeorgiaFont', 'useImpactFont',
|
||||||
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
|
'useLucidaFont', 'useLucidaSansFont', 'usePalatinoFont', 'useTahomaFont', 'useTimesNewRomanFont',
|
||||||
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
|
'useTrebuchetFont', 'useVerdanaFont', 'useSymbolFont', 'useWebdingsFont', 'useWingDingsFont', 'useSansSerifFont',
|
||||||
'useSerifFont'];
|
'useSerifFont'];
|
||||||
|
@ -163,6 +163,7 @@ var padeditor = (function()
|
||||||
font = font.replace("Font","");
|
font = font.replace("Font","");
|
||||||
font = font.toLowerCase();
|
font = font.toLowerCase();
|
||||||
if(font === "monospace") self.ace.setProperty("textface", "Courier new");
|
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 === "comicsans") self.ace.setProperty("textface", "Comic Sans MS");
|
||||||
if(font === "georgia") self.ace.setProperty("textface", "Georgia");
|
if(font === "georgia") self.ace.setProperty("textface", "Georgia");
|
||||||
if(font === "impact") self.ace.setProperty("textface", "Impact");
|
if(font === "impact") self.ace.setProperty("textface", "Impact");
|
||||||
|
|
|
@ -160,6 +160,7 @@
|
||||||
<select id="viewfontmenu">
|
<select id="viewfontmenu">
|
||||||
<option value="normal" data-l10n-id="pad.settings.fontType.normal"></option>
|
<option value="normal" data-l10n-id="pad.settings.fontType.normal"></option>
|
||||||
<option value="monospace" data-l10n-id="pad.settings.fontType.monospaced"></option>
|
<option value="monospace" data-l10n-id="pad.settings.fontType.monospaced"></option>
|
||||||
|
<option value="opendyslexic" data-l10n-id="pad.settings.fontType.opendyslexic"></option>
|
||||||
<option value="comicsans" data-l10n-id="pad.settings.fontType.comicsans"></option>
|
<option value="comicsans" data-l10n-id="pad.settings.fontType.comicsans"></option>
|
||||||
<option value="georgia" data-l10n-id="pad.settings.fontType.georgia"></option>
|
<option value="georgia" data-l10n-id="pad.settings.fontType.georgia"></option>
|
||||||
<option value="impact" data-l10n-id="pad.settings.fontType.impact"></option>
|
<option value="impact" data-l10n-id="pad.settings.fontType.impact"></option>
|
||||||
|
|
Loading…
Reference in New Issue