diff options
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/js/reader.js b/js/reader.js index abaea82..abc3e9e 100644 --- a/js/reader.js +++ b/js/reader.js @@ -3,7 +3,7 @@ /* global localforage, EpubeApp, App, Cookie, $ */ const DEFAULT_FONT_SIZE = 16; -const DEFAULT_FONT_FAMILY = "Georgia"; +const DEFAULT_FONT_FAMILY = "Arial"; const DEFAULT_LINE_HEIGHT = 140; const MIN_LENGTH_TO_JUSTIFY = 32; /* characters */ @@ -297,34 +297,6 @@ const Reader = { .append($("<style type='text/css'>") .text(Reader.Loader._res_data[base_url + 'dist/reader_iframe.min.css'])); - if (Reader.Loader._res_data[base_url + 'lib/fonts/pmn-caecilia-55.ttf']) { - const fonts_css = ` - @font-face { - font-family: Caecilia; - src: url(${Reader.Loader._res_data[base_url + 'lib/fonts/pmn-caecilia-55.ttf']}); - font-weight : normal; - } - - @font-face { - font-family: Caecilia; - src: url(${Reader.Loader._res_data[base_url + 'lib/fonts/pmn-caecilia-75.ttf']}); - font-weight : bold; - } - - @font-face { - font-family: Caecilia; - src: url(${Reader.Loader._res_data[base_url + 'lib/fonts/pmn-caecilia-56.ttf']}); - font-style : italic; - } - `; - - $(contents.document.head) - .append($("<style type='text/css'>") - .text(fonts_css)); - } else { - $(".font_family option[value='Caecilia']").hide(); - } - return localforage.getItem("epube.theme").then(function(theme) { if (!theme) theme = 'default'; @@ -1164,10 +1136,7 @@ const Reader = { // we need to preload resources for reader iframe because it can't utilize our // service worker because while offline it is created outside our base server context const res_names = [ "dist/app-libs.min.js", - "dist/reader_iframe.min.js", "dist/reader_iframe.min.css", - "lib/fonts/pmn-caecilia-55.ttf", - "lib/fonts/pmn-caecilia-56.ttf", - "lib/fonts/pmn-caecilia-75.ttf" ]; + "dist/reader_iframe.min.js", "dist/reader_iframe.min.css" ]; const promises = []; let load_failed = false; |