Function: ps-plot-with-face
ps-plot-with-face is a byte-compiled function defined in
ps-print.el.gz.
Signature
(ps-plot-with-face FROM TO FACE)
Source Code
;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
(defun ps-plot-with-face (from to face)
(cond
((null face) ; print text with null face
(ps-plot-region from to 0))
((eq face 'emacs--invisible--face)) ; skip invisible text!!!
(t ; otherwise, text has a valid face
(let* ((face-bit (ps-face-attribute-list face))
(effect (aref face-bit 0))
(foreground (aref face-bit 1))
(background (ps-face-background face (aref face-bit 2)))
(fg-color (if (and ps-color-p foreground)
(ps-color-scale foreground)
ps-default-color))
(bg-color (and ps-color-p background
(ps-color-scale background))))
(ps-plot-region
from to
(ps-font-number 'ps-font-for-text
(or (aref ps-font-type (logand effect 3))
face))
fg-color bg-color (ash effect -2)))))
(goto-char to))