diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-09 19:58:29 +0200 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-09 19:58:29 +0200 |
commit | 6e864d05fa4e59efc5480241dd2549429c8c2579 (patch) | |
tree | 1cef94a25e4acdbda3965c6fd8e856e5fbe7934c /nov.el | |
parent | 406ea5ff10e32b77383716f8926ea40a0b6cc9b7 (diff) |
Allow using the default face
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)))) |