# HG changeset patch # User Kenichi Handa <handa@m17n.org> # Date 1239712705 0 # Node ID b6011e4556000e3afb9247bf3943fcb25372ad44 # Parent 6e053873a19a782ecf20ced4572bbd3d4bb180f2 (Ffont_info): Fix docstring. Fix the second element of the returned value. diff -r 6e053873a19a -r b6011e455600 src/font.c --- a/src/font.c Tue Apr 14 10:37:59 2009 +0000 +++ b/src/font.c Tue Apr 14 12:38:25 2009 +0000 @@ -4906,13 +4906,13 @@ 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 @@ 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);