(x_produce_glyphs): Don't set it->ascent and it->descent
to negative value.
This commit is contained in:
parent
794e558c7f
commit
b21976907d
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue