Function: make-glyph-code

make-glyph-code is an autoloaded and byte-compiled function defined in disp-table.el.gz.

Signature

(make-glyph-code CHAR &optional FACE)

Documentation

Return a glyph code representing char CHAR with face FACE.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/disp-table.el.gz
;;;###autoload
(defun make-glyph-code (char &optional face)
  "Return a glyph code representing char CHAR with face FACE."
  (if (not face)
      char
    (let ((fid (face-id face)))
      (if (< fid 64) ; we have 32 - 3(LSB) - 1(SIGN) - 22(CHAR) = 6 bits for face id
	  (logior char (ash fid 22))
	(cons char fid)))))