diff options
| author | Kenichi Handa | 2004-03-29 03:41:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-03-29 03:41:39 +0000 |
| commit | fdc5802e53c1a70ed5acc45f593089102d3e6385 (patch) | |
| tree | 8b68590ddb96520b524aac9d6748c4d79f7a1e13 | |
| parent | f8b0995724b025dfe1e515142dc401791b4bbb41 (diff) | |
| download | emacs-fdc5802e53c1a70ed5acc45f593089102d3e6385.tar.gz emacs-fdc5802e53c1a70ed5acc45f593089102d3e6385.zip | |
(char-displayable-p): Fix generation of XLFD file name.
| -rw-r--r-- | lisp/international/mule-util.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index b667ec9227a..3a3539359ec 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -384,10 +384,15 @@ basis, this may not be accurate." | |||
| 384 | ;; Now FONT-PATTERN is a string or a cons of family | 384 | ;; Now FONT-PATTERN is a string or a cons of family |
| 385 | ;; field pattern and registry field pattern. | 385 | ;; field pattern and registry field pattern. |
| 386 | (or (stringp font-pattern) | 386 | (or (stringp font-pattern) |
| 387 | (setq font-pattern (concat "-" | 387 | (let ((family (or (car font-pattern) "*")) |
| 388 | (or (car font-pattern) "*") | 388 | (registry (or (cdr font-pattern) "*"))) |
| 389 | "-*-" | 389 | (or (string-match "-" family) |
| 390 | (cdr font-pattern)))) | 390 | (setq family (concat "*-" family))) |
| 391 | (or (string-match "-" registry) | ||
| 392 | (setq registry (concat registry "-*"))) | ||
| 393 | (setq font-pattern | ||
| 394 | (format "-%s-*-*-*-*-*-*-*-*-*-*-%s" | ||
| 395 | family registry)))) | ||
| 391 | (x-list-fonts font-pattern 'default (selected-frame) 1))))) | 396 | (x-list-fonts font-pattern 'default (selected-frame) 1))))) |
| 392 | (t | 397 | (t |
| 393 | (let ((coding (terminal-coding-system))) | 398 | (let ((coding (terminal-coding-system))) |