]> git.eshelyaron.com Git - emacs.git/commitdiff
(Width): Use \s syntax in example.
authorRichard M. Stallman <rms@gnu.org>
Tue, 22 Jul 2003 15:25:22 +0000 (15:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 22 Jul 2003 15:25:22 +0000 (15:25 +0000)
(Font Selection): Add face-font-rescale-alist.

lispref/display.texi

index 1fb2157fcf229c1856b6c5d0e36694406f31987e..d7ca6b65cbedad256f46480b626c008ac0877af1 100644 (file)
@@ -1166,7 +1166,7 @@ the beginning of the result if one multi-column character in
 @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 @@ If @var{unload-p} is non-@code{nil}, that means to unload
 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