From 6bc3abcbba3edc8fb83428252ecbb20f7f0926dc Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 22 Jul 2003 15:25:22 +0000 Subject: [PATCH] (Width): Use \s syntax in example. (Font Selection): Add face-font-rescale-alist. --- lispref/display.texi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lispref/display.texi b/lispref/display.texi index 1fb2157fcf2..d7ca6b65cbe 100644 --- a/lispref/display.texi +++ b/lispref/display.texi @@ -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 -- 2.39.2