aboutsummaryrefslogtreecommitdiff
path: root/nov.el
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2017-09-09 19:58:29 +0200
committerVasilij Schneidermann <mail@vasilij.de>2017-09-09 19:58:29 +0200
commit6e864d05fa4e59efc5480241dd2549429c8c2579 (patch)
tree1cef94a25e4acdbda3965c6fd8e856e5fbe7934c /nov.el
parent406ea5ff10e32b77383716f8926ea40a0b6cc9b7 (diff)
Allow using the default face
Diffstat (limited to 'nov.el')
-rw-r--r--nov.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/nov.el b/nov.el
index 2d61daa..fcc3632 100644
--- a/nov.el
+++ b/nov.el
@@ -58,6 +58,12 @@
:type '(file :must-match t)
:group 'nov)
+(defcustom nov-variable-pitch t
+ "Non-nil if a variable pitch face should be used.
+Otherwise the default face is used."
+ :type 'boolean
+ :group 'nov)
+
(defvar-local nov-temp-dir nil
"Temporary directory containing the buffer's EPUB files.")
@@ -413,7 +419,8 @@ the HTML is rendered with `shr-render-region'."
(when (not imagep)
(let (;; HACK: make buttons use our own commands
(shr-map nov-mode-map)
- (shr-external-rendering-functions nov-rendering-functions))
+ (shr-external-rendering-functions nov-rendering-functions)
+ (shr-use-fonts nov-variable-pitch))
(shr-render-region (point-min) (point-max))))
(goto-char (point-min))))