diff options
| author | Chong Yidong | 2009-01-19 15:29:18 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-01-19 15:29:18 +0000 |
| commit | 803ee7b9b1e33ef920245b8daaf3d9601716cf65 (patch) | |
| tree | 08b155dfbdda7a71c09f1126a527ef569c964c1a | |
| parent | fb13a41632555a82f635224750f8b6bf359a510f (diff) | |
| download | emacs-803ee7b9b1e33ef920245b8daaf3d9601716cf65.tar.gz emacs-803ee7b9b1e33ef920245b8daaf3d9601716cf65.zip | |
(Font Lookup): Document WIDTH argument of x-list-fonts.
| -rw-r--r-- | doc/lispref/display.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 76e65d3316a..b29515cdc8f 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2725,7 +2725,7 @@ nominal heights and widths would suggest. | |||
| 2725 | @node Font Lookup | 2725 | @node Font Lookup |
| 2726 | @subsection Looking Up Fonts | 2726 | @subsection Looking Up Fonts |
| 2727 | 2727 | ||
| 2728 | @defun x-list-fonts name &optional reference-face frame maximum | 2728 | @defun x-list-fonts name &optional reference-face frame maximum width |
| 2729 | This function returns a list of available font names that match | 2729 | This function returns a list of available font names that match |
| 2730 | @var{name}. @var{name} should be a string containing a font name in | 2730 | @var{name}. @var{name} should be a string containing a font name in |
| 2731 | either the Fontconfig, GTK, or XLFD format (@pxref{Font X,, Font | 2731 | either the Fontconfig, GTK, or XLFD format (@pxref{Font X,, Font |
| @@ -2744,6 +2744,11 @@ return. If it is non-@code{nil}, then the return value is truncated | |||
| 2744 | after the first @var{maximum} matching fonts. Specifying a small | 2744 | after the first @var{maximum} matching fonts. Specifying a small |
| 2745 | value for @var{maximum} can make this function much faster, in cases | 2745 | value for @var{maximum} can make this function much faster, in cases |
| 2746 | where many fonts match the pattern. | 2746 | where many fonts match the pattern. |
| 2747 | |||
| 2748 | The optional argument @var{width} specifies a desired font width. If | ||
| 2749 | it is non-@code{nil}, the function only returns those fonts whose | ||
| 2750 | characters are (on average) @var{width} times as wide as | ||
| 2751 | @var{reference-face}. | ||
| 2747 | @end defun | 2752 | @end defun |
| 2748 | 2753 | ||
| 2749 | @defun x-family-fonts &optional family frame | 2754 | @defun x-family-fonts &optional family frame |