Commit 9da001b8 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Fix for fonts fallback

parent bd3ba995
......@@ -38,10 +38,10 @@ class HTMLEPUB {
stream (outputStream) {
const epub = this
const fontsRoot = epub.options.fontsRoot.replace(/\/?$/, '/') // ensure trailing slash
if (fontsRoot !== '') {
if (epub.options.fontsRoot !== '') {
const fontsRoot = epub.options.fontsRoot.replace(/\/?$/, '/') // ensure trailing slash
fs.readdirSync(fontsRoot).forEach(file => {
const source = `${fontsRoot}/${file}`
const target = `styles/fonts/${file}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment