diff options
| author | Kenichi Handa | 2007-06-20 11:30:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-06-20 11:30:15 +0000 |
| commit | 2b96faf7768dfc2d2b00d488172450fccec229e4 (patch) | |
| tree | 51b34451de1c2da544c970d7948f977f3515e294 | |
| parent | d0364d09829037b34a44ad0abf7170eb54968b9b (diff) | |
| download | emacs-2b96faf7768dfc2d2b00d488172450fccec229e4.tar.gz emacs-2b96faf7768dfc2d2b00d488172450fccec229e4.zip | |
(print-fontset-element): Fix for the
format change of a fontset element for font-backend feature.
| -rw-r--r-- | lisp/international/mule-diag.el | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index bffdc5b9a2a..6bbe29426ce 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -877,21 +877,36 @@ The font must be already used by Emacs." | |||
| 877 | (let ((requested (car elt))) | 877 | (let ((requested (car elt))) |
| 878 | (if (stringp requested) | 878 | (if (stringp requested) |
| 879 | (insert "\n " requested) | 879 | (insert "\n " requested) |
| 880 | (let ((family (aref requested 0)) | 880 | (let (family registry weight slant width adstyle) |
| 881 | (registry (aref requested 5))) | 881 | (if (fontp requested) |
| 882 | (setq family (font-get requested :family) | ||
| 883 | registry (font-get requested :registry) | ||
| 884 | weight (font-get requested :weight) | ||
| 885 | slant (font-get requested :slant) | ||
| 886 | width (font-get requested :width) | ||
| 887 | adstyle (font-get requested :adstyle)) | ||
| 888 | (setq family (aref requested 0) | ||
| 889 | registry (aref requested 5) | ||
| 890 | weight (aref requested 1) | ||
| 891 | slant (aref requested 2) | ||
| 892 | width (aref requested 3) | ||
| 893 | adstyle (aref requested 4))) | ||
| 882 | (if (not family) | 894 | (if (not family) |
| 883 | (setq family "*-*") | 895 | (setq family "*-*") |
| 896 | (if (symbolp family) | ||
| 897 | (setq family (symbol-name family))) | ||
| 884 | (or (string-match "-" family) | 898 | (or (string-match "-" family) |
| 885 | (setq family (concat "*-" family)))) | 899 | (setq family (concat "*-" family)))) |
| 886 | (or (string-match "-" registry) | 900 | (if (not registry) |
| 887 | (= (aref registry (1- (length registry))) ?*) | 901 | (setq registry "*-*") |
| 888 | (setq registry (concat registry "*"))) | 902 | (if (symbolp registry) |
| 889 | (insert "\n -" family | 903 | (setq registry (symbol-name registry))) |
| 890 | ?- (or (aref requested 1) ?*) ; weight | 904 | (or (string-match "-" registry) |
| 891 | ?- (or (aref requested 2) ?*) ; slant | 905 | (= (aref registry (1- (length registry))) ?*) |
| 892 | ?- (or (aref requested 3) ?*) ; width | 906 | (setq registry (concat registry "*")))) |
| 893 | ?- (or (aref requested 4) ?*) ; adstyle | 907 | (insert (format"\n -%s-%s-%s-%s-%s-*-*-*-*-*-*-%s" |
| 894 | "-*-*-*-*-*-*-" registry)))) | 908 | family (or weight "*") (or slant "*") (or width "*") |
| 909 | (or adstyle "*") registry))))) | ||
| 895 | 910 | ||
| 896 | ;; Insert opened font names (if any). | 911 | ;; Insert opened font names (if any). |
| 897 | (if (and (boundp 'print-opened) (symbol-value 'print-opened)) | 912 | (if (and (boundp 'print-opened) (symbol-value 'print-opened)) |