aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lord2016-01-17 22:03:10 +0000
committerPhillip Lord2016-01-17 22:03:10 +0000
commit4b3b524080aa897a39b20d1ff671af6d47ebd547 (patch)
tree1a33af5bec4a2c02b8a030450fb112eabcab8fc9
parent05e8148a24ebe51fbe758dd16265e8fb81f85953 (diff)
downloademacs-fix/htmlfontify-21990.tar.gz
emacs-fix/htmlfontify-21990.zip
Cope with multiple overlapping faces.fix/htmlfontify-21990
* lisp/htmlfontify.el (hfy-face-to-style-i): Treat inheritance right to left. (hfy-face-resolve-face): Handle font specification as well as font name
-rw-r--r--lisp/htmlfontify.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 178f3a00133..ca456c7a3d1 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -999,7 +999,7 @@ merged by the user - `hfy-flatten-style' should do this."
999 (append 999 (append
1000 parent 1000 parent
1001 (hfy-face-to-style-i 1001 (hfy-face-to-style-i
1002 (hfy-face-attr-for-class v hfy-display-class)) )))) 1002 (hfy-face-attr-for-class v hfy-display-class))))))
1003 (setq this 1003 (setq this
1004 (if val (case key 1004 (if val (case key
1005 (:family (hfy-family val)) 1005 (:family (hfy-family val))
@@ -1018,7 +1018,7 @@ merged by the user - `hfy-flatten-style' should do this."
1018 (:italic (hfy-slant 'italic)))))) 1018 (:italic (hfy-slant 'italic))))))
1019 (setq that (hfy-face-to-style-i next)) 1019 (setq that (hfy-face-to-style-i next))
1020 ;;(lwarn t :warning "%S => %S" fn (nconc this that parent)) 1020 ;;(lwarn t :warning "%S => %S" fn (nconc this that parent))
1021 (nconc this that parent))) ) 1021 (nconc this parent that))) )
1022 1022
1023(defun hfy-size-to-int (spec) 1023(defun hfy-size-to-int (spec)
1024 "Convert SPEC, a CSS font-size specifier, to an Emacs :height attribute value. 1024 "Convert SPEC, a CSS font-size specifier, to an Emacs :height attribute value.
@@ -1062,7 +1062,7 @@ haven't encountered them yet. Returns a `hfy-style-assoc'."
1062 ((and (symbolp fn) 1062 ((and (symbolp fn)
1063 (facep (symbol-value fn))) 1063 (facep (symbol-value fn)))
1064 (hfy-face-attr-for-class (symbol-value fn) hfy-display-class)) 1064 (hfy-face-attr-for-class (symbol-value fn) hfy-display-class))
1065 (t nil))) 1065 (t fn)))
1066 1066
1067 1067
1068(defun hfy-face-to-style (fn) 1068(defun hfy-face-to-style (fn)