aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-22 15:25:22 +0000
committerRichard M. Stallman2003-07-22 15:25:22 +0000
commit6bc3abcbba3edc8fb83428252ecbb20f7f0926dc (patch)
tree5a036d81a169c4805225beec1f835a7a1085fadb /lispref
parent5a5d2aecd8266bdc9666a893f628c374ca0de6ea (diff)
downloademacs-6bc3abcbba3edc8fb83428252ecbb20f7f0926dc.tar.gz
emacs-6bc3abcbba3edc8fb83428252ecbb20f7f0926dc.zip
(Width): Use \s syntax in example.
(Font Selection): Add face-font-rescale-alist.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/display.texi17
1 files changed, 16 insertions, 1 deletions
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
1166@example 1166@example
1167(truncate-string-to-width "\tab\t" 12 4) 1167(truncate-string-to-width "\tab\t" 12 4)
1168 @result{} "ab" 1168 @result{} "ab"
1169(truncate-string-to-width "\tab\t" 12 4 ?\ ) 1169(truncate-string-to-width "\tab\t" 12 4 ?\s)
1170 @result{} " ab " 1170 @result{} " ab "
1171@end example 1171@end example
1172@end defun 1172@end defun
@@ -2007,6 +2007,21 @@ If @var{unload-p} is non-@code{nil}, that means to unload
2007all unused fonts as well. 2007all unused fonts as well.
2008@end defun 2008@end defun
2009 2009
2010@defvar face-font-rescale-alist
2011This variable specifies scaling for certain faces. Its value should
2012be a list of elements of the form
2013
2014@example
2015(@var{fontname-regexp} . @var{scale-factor})
2016@end example
2017
2018If @var{fontname-regexp} matches the font name that is about to be
2019used, this says to choose a larger similar font according to the
2020factor @var{scale-factor}. You would use this feature to normalize
2021the font size if certain fonts are bigger or smaller than their
2022nominal heights and widths would suggest.
2023@end defvar
2024
2010@node Face Functions 2025@node Face Functions
2011@subsection Functions for Working with Faces 2026@subsection Functions for Working with Faces
2012 2027