]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffont_info): Fix docstring. Fix the second element of
authorKenichi Handa <handa@m17n.org>
Tue, 14 Apr 2009 12:41:33 +0000 (12:41 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 14 Apr 2009 12:41:33 +0000 (12:41 +0000)
the returned value.

src/ChangeLog
src/font.c

index 7c07489dfc1b6b562793b6608946bc0155f9c960..9aab450f82b51379a279ac31f6e396c28e42b5ad 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-14  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (Ffont_info): Fix docstring.  Fix the second element of
+       the returned value (bug#2949).
+
 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
 
        * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
index 58518727bd637fbbfbdbd6a075bb92bfc63c16f2..f3615e2e9b1834e6d5e28611e67c0d776f09b8b9 100644 (file)
@@ -4906,13 +4906,13 @@ Type C-l to recover what previously shown.  */)
 DEFUN ("font-info", Ffont_info, Sfont_info, 1, 2, 0,
        doc: /* Return information about a font named NAME on frame FRAME.
 If FRAME is omitted or nil, use the selected frame.
-The returned value is a vector of OPENED-NAME, FULL-NAME, CHARSET, SIZE,
+The returned value is a vector of OPENED-NAME, FULL-NAME, SIZE,
   HEIGHT, BASELINE-OFFSET, RELATIVE-COMPOSE, and DEFAULT-ASCENT,
 where
   OPENED-NAME is the name used for opening the font,
   FULL-NAME is the full name of the font,
-  SIZE is the maximum bound width of the font,
-  HEIGHT is the height of the font,
+  SIZE is the pixelsize of the font,
+  HEIGHT is the pixel-height of the font (i.e ascent + descent),
   BASELINE-OFFSET is the upward offset pixels from ASCII baseline,
   RELATIVE-COMPOSE and DEFAULT-ASCENT are the numbers controlling
     how to compose characters.
@@ -4959,7 +4959,7 @@ If the named font is not yet loaded, return nil.  */)
 
   info = Fmake_vector (make_number (7), Qnil);
   XVECTOR (info)->contents[0] = AREF (font_object, FONT_NAME_INDEX);
-  XVECTOR (info)->contents[1] = AREF (font_object, FONT_NAME_INDEX);
+  XVECTOR (info)->contents[1] = AREF (font_object, FONT_FULLNAME_INDEX);
   XVECTOR (info)->contents[2] = make_number (font->pixel_size);
   XVECTOR (info)->contents[3] = make_number (font->height);
   XVECTOR (info)->contents[4] = make_number (font->baseline_offset);