changeset 52002:26d4153f70a1

(Width): Use \s syntax in example. (Font Selection): Add face-font-rescale-alist.
author Richard M. Stallman <rms@gnu.org>
date Tue, 22 Jul 2003 15:25:22 +0000
parents b96d92c96bd1
children 0509fad02151
files lispref/display.texi
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/display.texi	Tue Jul 22 15:24:39 2003 +0000
+++ b/lispref/display.texi	Tue Jul 22 15:25:22 2003 +0000
@@ -1166,7 +1166,7 @@
 @example
 (truncate-string-to-width "\tab\t" 12 4)
      @result{} "ab"
-(truncate-string-to-width "\tab\t" 12 4 ?\ )
+(truncate-string-to-width "\tab\t" 12 4 ?\s)
      @result{} "    ab  "
 @end example
 @end defun
@@ -2007,6 +2007,21 @@
 all unused fonts as well.
 @end defun
 
+@defvar face-font-rescale-alist
+This variable specifies scaling for certain faces.  Its value should
+be a list of elements of the form
+
+@example
+(@var{fontname-regexp} . @var{scale-factor})
+@end example
+
+If @var{fontname-regexp} matches the font name that is about to be
+used, this says to choose a larger similar font according to the
+factor @var{scale-factor}.  You would use this feature to normalize
+the font size if certain fonts are bigger or smaller than their
+nominal heights and widths would suggest.
+@end defvar
+
 @node Face Functions
 @subsection Functions for Working with Faces