Commit 2cf4d521 authored by Chong Yidong's avatar Chong Yidong
Browse files

Handle fonts with corrupted size specs, i.e. non-int and non-float.

parent ba207571
......@@ -3084,10 +3084,13 @@ font_update_lface (f, attrs)
dpi = XINT (val);
point = PIXEL_TO_POINT (XINT (AREF (spec, FONT_SIZE_INDEX)) * 10,
dpi);
attrs[LFACE_HEIGHT_INDEX] = make_number (point);
}
else if (FLOATP (AREF (spec, FONT_SIZE_INDEX)))
point = XFLOAT_DATA (AREF (spec, FONT_SIZE_INDEX)) * 10;
attrs[LFACE_HEIGHT_INDEX] = make_number (point);
{
point = XFLOAT_DATA (AREF (spec, FONT_SIZE_INDEX)) * 10;
attrs[LFACE_HEIGHT_INDEX] = make_number (point);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment