Mercurial > emacs
changeset 55095:4d5ade635f7a
(char-displayable-p): Simplified by using internal-char-font.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 23 Apr 2004 02:08:22 +0000 |
parents | 450b41d3c078 |
children | 4f9eee6a3018 |
files | lisp/international/mule-util.el |
diffstat | 1 files changed, 1 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/mule-util.el Fri Apr 23 02:04:13 2004 +0000 +++ b/lisp/international/mule-util.el Fri Apr 23 02:08:22 2004 +0000 @@ -373,27 +373,7 @@ ;; On a window system, a character is displayable if we have ;; a font for that character in the default face of the ;; currently selected frame. - (let ((fontset (frame-parameter (selected-frame) 'font)) - font-pattern) - (if (query-fontset fontset) - (setq font-pattern (fontset-font fontset char))) - (or font-pattern - (setq font-pattern (fontset-font "fontset-default" char))) - (if font-pattern - (progn - ;; Now FONT-PATTERN is a string or a cons of family - ;; field pattern and registry field pattern. - (or (stringp font-pattern) - (let ((family (or (car font-pattern) "*")) - (registry (or (cdr font-pattern) "*"))) - (or (string-match "-" family) - (setq family (concat "*-" family))) - (or (string-match "-" registry) - (setq registry (concat registry "-*"))) - (setq font-pattern - (format "-%s-*-*-*-*-*-*-*-*-*-*-%s" - family registry)))) - (x-list-fonts font-pattern 'default (selected-frame) 1))))) + (car (internal-char-font nil char))) (t (let ((coding (terminal-coding-system))) (if coding