]> git.eshelyaron.com Git - emacs.git/commitdiff
Update Android port
authorPo Lu <luangruo@yahoo.com>
Tue, 28 Mar 2023 08:34:50 +0000 (16:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 28 Mar 2023 08:34:50 +0000 (16:34 +0800)
* src/sfnt.c (sfnt_vary_simple_glyph, sfnt_vary_compound_glyph):
Fix application of intermediate tuples.
* src/sfntfont.c (sfntfont_open): Set xlfd name after applying
distortion.

src/sfnt.c
src/sfntfont.c

index 2762f3df4574d059c94eb003e17c7a0ac8052f16..d2d3500a18daf25a397e45a3e11e839a884402f2 100644 (file)
@@ -14331,7 +14331,7 @@ sfnt_vary_simple_glyph (struct sfnt_blend *blend, sfnt_glyph id,
       /* See whether or not the tuple applies to the current variation
         configuration, and how much to scale them by.  */
 
-      scale = sfnt_compute_tuple_scale (blend, index & 0x1000,
+      scale = sfnt_compute_tuple_scale (blend, index & 0x4000,
                                        coords, intermediate_start,
                                        intermediate_end);
 
@@ -14705,7 +14705,7 @@ sfnt_vary_compound_glyph (struct sfnt_blend *blend, sfnt_glyph id,
       /* See whether or not the tuple applies to the current variation
         configuration, and how much to scale them by.  */
 
-      scale = sfnt_compute_tuple_scale (blend, index & 0x1000,
+      scale = sfnt_compute_tuple_scale (blend, index & 0x4000,
                                        coords, intermediate_start,
                                        intermediate_end);
 
index f9965ef13f1a48936a33b3c26cedeba0bba8dac3..daf8f54c03c459e39d8065f798b686cd07c442fc 100644 (file)
@@ -3045,9 +3045,6 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
   font_info->font.underline_position = -1;
   font_info->font.underline_thickness = 0;
 
-  /* Calculate the xfld name.  */
-  font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil);
-
   /* Now try to set up grid fitting for this font.  */
   dpyinfo = FRAME_DISPLAY_INFO (f);
   point_size = PIXEL_TO_POINT (pixel_size, (dpyinfo->resx
@@ -3099,6 +3096,9 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
        }
     }
 
+  /* Calculate the xfld name.  */
+  font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil);
+
 #ifdef HAVE_HARFBUZZ
   /* HarfBuzz will potentially read font tables after the font has
      been opened by Emacs.  Keep the font open, and record its offset