aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2009-04-14 12:41:33 +0000
committerKenichi Handa2009-04-14 12:41:33 +0000
commit06f19b91268f98f9c47b2584006929a474b352f3 (patch)
tree8b456e71da75677287eb1b95ad6ba31a1afac6ba /src
parentdfec862219fd14d3fea981aceff71fc4e1c7be5a (diff)
downloademacs-06f19b91268f98f9c47b2584006929a474b352f3.tar.gz
emacs-06f19b91268f98f9c47b2584006929a474b352f3.zip
(Ffont_info): Fix docstring. Fix the second element of
the returned value.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/font.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7c07489dfc1..9aab450f82b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-04-14 Kenichi Handa <handa@m17n.org>
2
3 * font.c (Ffont_info): Fix docstring. Fix the second element of
4 the returned value (bug#2949).
5
12009-04-14 Chong Yidong <cyd@stupidchicken.com> 62009-04-14 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings. 8 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
diff --git a/src/font.c b/src/font.c
index 58518727bd6..f3615e2e9b1 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4906,13 +4906,13 @@ Type C-l to recover what previously shown. */)
4906DEFUN ("font-info", Ffont_info, Sfont_info, 1, 2, 0, 4906DEFUN ("font-info", Ffont_info, Sfont_info, 1, 2, 0,
4907 doc: /* Return information about a font named NAME on frame FRAME. 4907 doc: /* Return information about a font named NAME on frame FRAME.
4908If FRAME is omitted or nil, use the selected frame. 4908If FRAME is omitted or nil, use the selected frame.
4909The returned value is a vector of OPENED-NAME, FULL-NAME, CHARSET, SIZE, 4909The returned value is a vector of OPENED-NAME, FULL-NAME, SIZE,
4910 HEIGHT, BASELINE-OFFSET, RELATIVE-COMPOSE, and DEFAULT-ASCENT, 4910 HEIGHT, BASELINE-OFFSET, RELATIVE-COMPOSE, and DEFAULT-ASCENT,
4911where 4911where
4912 OPENED-NAME is the name used for opening the font, 4912 OPENED-NAME is the name used for opening the font,
4913 FULL-NAME is the full name of the font, 4913 FULL-NAME is the full name of the font,
4914 SIZE is the maximum bound width of the font, 4914 SIZE is the pixelsize of the font,
4915 HEIGHT is the height of the font, 4915 HEIGHT is the pixel-height of the font (i.e ascent + descent),
4916 BASELINE-OFFSET is the upward offset pixels from ASCII baseline, 4916 BASELINE-OFFSET is the upward offset pixels from ASCII baseline,
4917 RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling 4917 RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling
4918 how to compose characters. 4918 how to compose characters.
@@ -4959,7 +4959,7 @@ If the named font is not yet loaded, return nil. */)
4959 4959
4960 info = Fmake_vector (make_number (7), Qnil); 4960 info = Fmake_vector (make_number (7), Qnil);
4961 XVECTOR (info)->contents[0] = AREF (font_object, FONT_NAME_INDEX); 4961 XVECTOR (info)->contents[0] = AREF (font_object, FONT_NAME_INDEX);
4962 XVECTOR (info)->contents[1] = AREF (font_object, FONT_NAME_INDEX); 4962 XVECTOR (info)->contents[1] = AREF (font_object, FONT_FULLNAME_INDEX);
4963 XVECTOR (info)->contents[2] = make_number (font->pixel_size); 4963 XVECTOR (info)->contents[2] = make_number (font->pixel_size);
4964 XVECTOR (info)->contents[3] = make_number (font->height); 4964 XVECTOR (info)->contents[3] = make_number (font->height);
4965 XVECTOR (info)->contents[4] = make_number (font->baseline_offset); 4965 XVECTOR (info)->contents[4] = make_number (font->baseline_offset);