Commit 090ac50d authored by Po Lu's avatar Po Lu
Browse files

Don't round underline metrics

* src/sfntfont.c (sfntfont_open): Don't round underline position
or thickness, much as the other font drivers don't either.
parent d3b0162b
Pipeline #27000 failed with stages
in 4 minutes and 59 seconds
......@@ -3286,11 +3286,11 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
else
{
font_info->font.underline_position
= sfnt_coerce_fixed (SFNT_CEIL_FIXED (-desc->underline_position
* font_info->scale));
= sfnt_coerce_fixed (-desc->underline_position
* font_info->scale);
font_info->font.underline_thickness
= sfnt_coerce_fixed (SFNT_CEIL_FIXED (desc->underline_thickness
* font_info->scale));
= sfnt_coerce_fixed (desc->underline_thickness
* font_info->scale);
}
/* Now try to set up grid fitting for this font. */
......
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