Function: bdf-get-font-info
bdf-get-font-info is a byte-compiled function defined in ps-bdf.el.gz.
Signature
(bdf-get-font-info BDFNAME)
Documentation
Return information about BDF font file BDFNAME.
BDFNAME must be an absolute file name.
The value FONT-INFO is a list of the following format:
(BDFNAME MOD-TIME SIZE FONT-BOUNDING-BOX
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
See the documentation of the function bdf-read-font-info for more detail.
Source Code
;; Defined in /usr/src/emacs/lisp/ps-bdf.el.gz
(defun bdf-get-font-info (bdfname)
"Return information about `BDF' font file BDFNAME.
BDFNAME must be an absolute file name.
The value FONT-INFO is a list of the following format:
(BDFNAME MOD-TIME SIZE FONT-BOUNDING-BOX
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
See the documentation of the function `bdf-read-font-info' for more detail."
(or bdf-cache
(bdf-read-cache))
(let ((font-info (assoc bdfname bdf-cache)))
(if (or (not font-info)
(not (file-readable-p bdfname))
(bdf-file-newer-than-time bdfname (bdf-info-mod-time font-info)))
(progn
(setq font-info (bdf-read-font-info bdfname))
(bdf-set-cache font-info)))
font-info))