diff options
author | Zajcev Evgeny <zevlg@yandex.ru> | 2024-03-21 17:47:29 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-04-01 14:18:05 +0300 |
commit | 61d70186a4a80d0ffc0aaef224e514ff9cac0372 (patch) | |
tree | d7708de41cd1ed05d6ea04bea5db1117f99b04b3 /doc/lispref | |
parent | 7f377407b4b7d6ac9994ed983d7516bc42139885 (diff) | |
download | emacs-61d70186a4a80d0ffc0aaef224e514ff9cac0372.tar.gz |
Add support for `ch' and `cw' dimension specifiers for images
* src/image.c (image_get_dimension, lookup_image): Handle `ch'
and `cw' dimension specifiers in addition to `em'.
* src/dispextern.h: Add new members `face_font_height' and
`face_font_width' to `struct image'.
* doc/lispref/display.texi (Image Descriptors): Document
`ch' and `cw'.
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/display.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index b497967c445..f82c2fad14d 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -5788,8 +5788,11 @@ either an integer, which represents the dimension in pixels, or a pair length in @dfn{ems}@footnote{In typography an em is a distance equivalent to the height of the type. For example when using 12 point type 1 em is equal to 12 points. Its use ensures distances and type -remain proportional.}. One em is equivalent to the height of the font -and @var{value} may be an integer or a float. +remain proportional.}. One em is equivalent to the size of the font +and @var{value} may be an integer or a float. Also, dimension can be +specified in @code{(@var{value} . ch)} and @code{(@var{value} . cw)} +forms, where @code{ch} means height of the canonical character and +@code{cw} means width of the canonical character. The following is a list of properties that are meaningful for all image types (there are also properties which are meaningful only for |