Function: bdf-get-bitmap

bdf-get-bitmap is a byte-compiled function defined in ps-bdf.el.gz.

Signature

(bdf-get-bitmap BDFNAME CODE)

Documentation

Return bitmap information of glyph of CODE in BDF font file BDFNAME.

CODE is an encoding number of glyph in the file. The value is a list (DWIDTH BBX BITMAP-STRING). DWIDTH is a pixel width of a glyph. BBX is a bounding box of the glyph. BITMAP-STRING is a string representing bits by hexadecimal digits.

Source Code

;; Defined in /usr/src/emacs/lisp/ps-bdf.el.gz
(defun bdf-get-bitmap (bdfname code)
  "Return bitmap information of glyph of CODE in `BDF' font file BDFNAME.
CODE is an encoding number of glyph in the file.
The value is a list (DWIDTH BBX BITMAP-STRING).
DWIDTH is a pixel width of a glyph.
BBX is a bounding box of the glyph.
BITMAP-STRING is a string representing bits by hexadecimal digits."
  (let* ((info (bdf-get-font-info bdfname))
	 (maxlen (bdf-info-maxlen info))
	 (code-range (bdf-info-code-range info))
	 (offset-vector (bdf-info-offset-vector info)))
    (bdf-read-bitmap bdfname
		     (aref offset-vector (bdf-compact-code code code-range))
		     maxlen (bdf-info-relative-compose info))))