diff options
| author | Kenichi Handa | 1997-07-09 06:56:04 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-07-09 06:56:04 +0000 |
| commit | 2167d18d4048e71cfe5baa27f64c5015eeb77294 (patch) | |
| tree | 30c519ea3c2c324c5e6458fd7d1388b828057f6b | |
| parent | fa2ea19a90b706aaa44817fb9c6e20c5218280a8 (diff) | |
| download | emacs-2167d18d4048e71cfe5baa27f64c5015eeb77294.tar.gz emacs-2167d18d4048e71cfe5baa27f64c5015eeb77294.zip | |
(print-fontset): Output format improved.
(describe-fontset): Likewise. Doc-string modified.
(list-fontsets): Likewise.
| -rw-r--r-- | lisp/international/mule-diag.el | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index e7600df4af9..4cce91c002c 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -505,9 +505,14 @@ but contains full information about each coding systems." | |||
| 505 | ;;;###autoload | 505 | ;;;###autoload |
| 506 | (defun describe-font (fontname) | 506 | (defun describe-font (fontname) |
| 507 | "Display information about fonts which partially match FONTNAME." | 507 | "Display information about fonts which partially match FONTNAME." |
| 508 | (interactive "sFontname: ") | 508 | (interactive "sFontname (default, current choise for ASCII chars): ") |
| 509 | (or window-system | 509 | (or window-system |
| 510 | (error "No window system being used")) | 510 | (error "No window system being used")) |
| 511 | (when (or (not fontname) (= (length fontname) 0)) | ||
| 512 | (setq fontname (cdr (assq 'font (frame-parameters)))) | ||
| 513 | (if (query-fontset fontname) | ||
| 514 | (setq fontname | ||
| 515 | (nth 2 (assq 'ascii (aref (fontset-info fontname) 2)))))) | ||
| 511 | (let ((font-info (font-info fontname))) | 516 | (let ((font-info (font-info fontname))) |
| 512 | (if (null font-info) | 517 | (if (null font-info) |
| 513 | (message "No matching font") | 518 | (message "No matching font") |
| @@ -540,12 +545,12 @@ but contains full information about each coding systems." | |||
| 540 | (beginning-of-line) | 545 | (beginning-of-line) |
| 541 | (insert fontset) | 546 | (insert fontset) |
| 542 | (indent-to 58) | 547 | (indent-to 58) |
| 543 | (insert (if (> size 0) (format "%dx%d" size height) " ?")) | 548 | (insert (if (> size 0) (format "%2dx%d" size height) " -")) |
| 544 | (indent-to 64) | 549 | (indent-to 64) |
| 545 | (insert style "\n") | 550 | (insert style "\n") |
| 546 | (when print-fonts | 551 | (when print-fonts |
| 547 | (insert " O Charset / Fontname\n" | 552 | (insert " O Charset / Fontname\n" |
| 548 | " - -------\n") | 553 | " - ------------------\n") |
| 549 | (sort-charset-list) | 554 | (sort-charset-list) |
| 550 | (let ((l charset-list) | 555 | (let ((l charset-list) |
| 551 | charset font-info opened fontname) | 556 | charset font-info opened fontname) |
| @@ -569,10 +574,10 @@ but contains full information about each coding systems." | |||
| 569 | It prints name, size, and style of FONTSET, and lists up fonts | 574 | It prints name, size, and style of FONTSET, and lists up fonts |
| 570 | contained in FONTSET. | 575 | contained in FONTSET. |
| 571 | 576 | ||
| 572 | The format of Size column is WIDTHxHEIGHT, where WIDTH and HEIGHT is | 577 | The column WDxHT contains width and height (pixels) of each fontset |
| 573 | the character sizes (pixels) of each fontset (i.e. those of ASCII font | 578 | \(i.e. those of ASCII font in the fontset). The letter `-' in this |
| 574 | in the fontset). The letter `?' in this column means that the | 579 | column means that the corresponding fontset is not yet used in any |
| 575 | corresponding fontset is not yet used in any frame. | 580 | frame. |
| 576 | 581 | ||
| 577 | The O column of each font contains one of the following letters. | 582 | The O column of each font contains one of the following letters. |
| 578 | o -- font already opened | 583 | o -- font already opened |
| @@ -598,8 +603,8 @@ displayed by the font." | |||
| 598 | (with-output-to-temp-buffer "*Help*" | 603 | (with-output-to-temp-buffer "*Help*" |
| 599 | (save-excursion | 604 | (save-excursion |
| 600 | (set-buffer standard-output) | 605 | (set-buffer standard-output) |
| 601 | (insert "Fontset-Name\t\t\t\t\t\t Size Style\n") | 606 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") |
| 602 | (insert "------------\t\t\t\t\t\t ---- -----\n") | 607 | (insert "------------\t\t\t\t\t\t ----- -----\n") |
| 603 | (print-fontset fontset t))))) | 608 | (print-fontset fontset t))))) |
| 604 | 609 | ||
| 605 | ;;;###autoload | 610 | ;;;###autoload |
| @@ -607,20 +612,14 @@ displayed by the font." | |||
| 607 | "Display a list of all fontsets. | 612 | "Display a list of all fontsets. |
| 608 | 613 | ||
| 609 | It prints name, size, and style of each fontset. | 614 | It prints name, size, and style of each fontset. |
| 610 | |||
| 611 | The format of Size column is WIDTHxHEIGHT, where WIDHT and HEIGHT is | ||
| 612 | the character sizes (pixels) of each fontset (i.e. those of ASCII font | ||
| 613 | in the fontset). The letter `?' in this column means that the | ||
| 614 | corresponding fontset is not yet used in any frame. | ||
| 615 | |||
| 616 | With prefix arg, it also lists up fonts contained in each fontset. | 615 | With prefix arg, it also lists up fonts contained in each fontset. |
| 617 | See the function `describe-fontset' for the format of the list." | 616 | See the function `describe-fontset' for the format of the list." |
| 618 | (interactive "P") | 617 | (interactive "P") |
| 619 | (with-output-to-temp-buffer "*Help*" | 618 | (with-output-to-temp-buffer "*Help*" |
| 620 | (save-excursion | 619 | (save-excursion |
| 621 | (set-buffer standard-output) | 620 | (set-buffer standard-output) |
| 622 | (insert "Fontset-Name\t\t\t\t\t\t Size Style\n") | 621 | (insert "Fontset-Name\t\t\t\t\t\t WDxHT Style\n") |
| 623 | (insert "------------\t\t\t\t\t\t ---- -----\n") | 622 | (insert "------------\t\t\t\t\t\t ----- -----\n") |
| 624 | (let ((fontsets (fontset-list))) | 623 | (let ((fontsets (fontset-list))) |
| 625 | (while fontsets | 624 | (while fontsets |
| 626 | (print-fontset (car fontsets) arg) | 625 | (print-fontset (car fontsets) arg) |