]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't round underline metrics
authorPo Lu <luangruo@yahoo.com>
Tue, 31 Oct 2023 13:04:11 +0000 (21:04 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 31 Oct 2023 13:04:11 +0000 (21:04 +0800)
* src/sfntfont.c (sfntfont_open): Don't round underline position
or thickness, much as the other font drivers don't either.

src/sfntfont.c

index 822e4b20ee797c1c41b3cea8cfb613587ab05691..80fbde9772c4b97858ae460f85535725642990b3 100644 (file)
@@ -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.  */