(defun describe-font (fontname)
"Display information about fonts which partially match FONTNAME."
(interactive "sFontname (default, current choice for ASCII chars): ")
- (or (and window-system (boundp 'global-fontset-alist))
+ (or (and window-system (fboundp 'fontset-list))
(error "No fontsets being used"))
(when (or (not fontname) (= (length fontname) 0))
(setq fontname (cdr (assq 'font (frame-parameters))))
(beginning-of-line)
(insert fontset)
(indent-to 58)
- (insert (if (> size 0) (format "%2dx%d" size height) " -"))
+ (insert (if (and size (> size 0)) (format "%2dx%d" size height) " -"))
(indent-to 64)
(insert style "\n")
(when print-fonts
The Charset column for each font contains a name of character set
displayed (for this fontset) using that font."
(interactive
- (if (not (and window-system (boundp 'global-fontset-alist)))
+ (if (not (and window-system (fboundp 'fontset-list)))
(error "No fontsets being used")
(let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list)))
(completion-ignore-case t))
With prefix arg, it also list the fonts contained in each fontset;
see the function `describe-fontset' for the format of the list."
(interactive "P")
- (if (not (and window-system (boundp 'global-fontset-alist)))
+ (if (not (and window-system (fboundp 'fontset-list)))
(error "No fontsets being used")
(with-output-to-temp-buffer "*Help*"
(save-excursion
" Section 3. Input methods\n"
" Section 4. Coding systems\n"
" Section 5. Character sets\n")
- (if (and window-system (boundp 'global-fontset-alist))
+ (if (and window-system (fboundp 'fontset-list))
(insert " Section 6. Fontsets\n"))
(insert "\n")
(list-character-sets-2)
(insert "\n")
- (when (and window-system (boundp 'global-fontset-alist))
+ (when (and window-system (fboundp 'fontset-list))
;; This code duplicates most of list-fontsets.
(insert-section 6 "Fontsets")
(insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n")