Function: ps-mule-encode-header-string

ps-mule-encode-header-string is a byte-compiled function defined in ps-mule.el.gz.

Signature

(ps-mule-encode-header-string STRING FONTTAG)

Documentation

Generate PostScript code for plotting STRING by font FONTTAG.

FONTTAG should be a string "/h0", "/h1", "/L0", or "/H0". Any other value is treated as "/H0".

Source Code

;; Defined in /usr/src/emacs/lisp/ps-mule.el.gz
(defun ps-mule-encode-header-string (string fonttag)
  "Generate PostScript code for plotting STRING by font FONTTAG.
FONTTAG should be a string \"/h0\", \"/h1\", \"/L0\", or \"/H0\".
Any other value is treated as \"/H0\"."
  (with-temp-buffer
    (insert string)
    (list (ps-mule-encode-region (point-min) (point-max)
				 (aref ps-mule-font-spec-tables
				       (aref ps-mule-font-number-to-type
					     (pcase fonttag
					       ("/h0" 4)
					       ("/h1" 5)
					       ("/L0" 6)
					       (_     0))))))))