From 6e864d05fa4e59efc5480241dd2549429c8c2579 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sat, 9 Sep 2017 19:58:29 +0200 Subject: Allow using the default face --- nov.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)))) -- cgit v1.2.3