(x_produce_glyphs): Don't set it->ascent and it->descent

to negative value.
This commit is contained in:
Kenichi Handa 2008-02-06 11:54:51 +00:00
parent 794e558c7f
commit b21976907d

View file

@ -21398,8 +21398,11 @@ x_produce_glyphs (it)
it->pixel_width = cmp->pixel_width;
it->ascent = it->phys_ascent = cmp->ascent;
if (it->ascent < 0)
it->ascent = it->phys_ascent = 0;
it->descent = it->phys_descent = cmp->descent;
if (it->descent < 0)
it->descent = it->phys_descent = 0;
if (face->box != FACE_NO_BOX)
{
int thick = face->box_line_width;