changeset 39346:aa9501b93334

(bdf-read-bitmap): Initialize returned values to defaults.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 19 Sep 2001 09:12:54 +0000
parents 195e4e86b20a
children 2ca3ae6956be
files lisp/ps-bdf.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ps-bdf.el	Wed Sep 19 08:56:58 2001 +0000
+++ b/lisp/ps-bdf.el	Wed Sep 19 09:12:54 2001 +0000
@@ -359,8 +359,11 @@
 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 ((coding-system-for-read 'no-conversion)
-	dwidth bbx height yoff bitmap-string)
+  (let* ((coding-system-for-read 'no-conversion)
+	 (bbx (elt (bdf-get-font-info bdfname) 4))
+	 (dwidth (elt bbx 0))
+	 (bitmap-string "")
+	 height yoff)
     (condition-case nil
 	(with-temp-buffer
 	  (insert-file-contents bdfname nil offset (+ offset maxlen))