aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-03-28 16:34:50 +0800
committerPo Lu2023-03-28 16:34:50 +0800
commitbf28a372ab6aad2d18e0417ac85a4aad14e4a9d7 (patch)
tree50e3232593e3bb29ce836d8284d36a5ee2cbc1ec /src
parent2826287b1a3d6661535d631732abd122d460b9fa (diff)
downloademacs-bf28a372ab6aad2d18e0417ac85a4aad14e4a9d7.tar.gz
emacs-bf28a372ab6aad2d18e0417ac85a4aad14e4a9d7.zip
Update Android port
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/sfnt.c4
-rw-r--r--src/sfntfont.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/sfnt.c b/src/sfnt.c
index 2762f3df457..d2d3500a18d 100644
--- a/src/sfnt.c
+++ b/src/sfnt.c
@@ -14331,7 +14331,7 @@ sfnt_vary_simple_glyph (struct sfnt_blend *blend, sfnt_glyph id,
14331 /* See whether or not the tuple applies to the current variation 14331 /* See whether or not the tuple applies to the current variation
14332 configuration, and how much to scale them by. */ 14332 configuration, and how much to scale them by. */
14333 14333
14334 scale = sfnt_compute_tuple_scale (blend, index & 0x1000, 14334 scale = sfnt_compute_tuple_scale (blend, index & 0x4000,
14335 coords, intermediate_start, 14335 coords, intermediate_start,
14336 intermediate_end); 14336 intermediate_end);
14337 14337
@@ -14705,7 +14705,7 @@ sfnt_vary_compound_glyph (struct sfnt_blend *blend, sfnt_glyph id,
14705 /* See whether or not the tuple applies to the current variation 14705 /* See whether or not the tuple applies to the current variation
14706 configuration, and how much to scale them by. */ 14706 configuration, and how much to scale them by. */
14707 14707
14708 scale = sfnt_compute_tuple_scale (blend, index & 0x1000, 14708 scale = sfnt_compute_tuple_scale (blend, index & 0x4000,
14709 coords, intermediate_start, 14709 coords, intermediate_start,
14710 intermediate_end); 14710 intermediate_end);
14711 14711
diff --git a/src/sfntfont.c b/src/sfntfont.c
index f9965ef13f1..daf8f54c03c 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -3045,9 +3045,6 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
3045 font_info->font.underline_position = -1; 3045 font_info->font.underline_position = -1;
3046 font_info->font.underline_thickness = 0; 3046 font_info->font.underline_thickness = 0;
3047 3047
3048 /* Calculate the xfld name. */
3049 font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil);
3050
3051 /* Now try to set up grid fitting for this font. */ 3048 /* Now try to set up grid fitting for this font. */
3052 dpyinfo = FRAME_DISPLAY_INFO (f); 3049 dpyinfo = FRAME_DISPLAY_INFO (f);
3053 point_size = PIXEL_TO_POINT (pixel_size, (dpyinfo->resx 3050 point_size = PIXEL_TO_POINT (pixel_size, (dpyinfo->resx
@@ -3099,6 +3096,9 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
3099 } 3096 }
3100 } 3097 }
3101 3098
3099 /* Calculate the xfld name. */
3100 font->props[FONT_NAME_INDEX] = Ffont_xlfd_name (font_object, Qnil);
3101
3102#ifdef HAVE_HARFBUZZ 3102#ifdef HAVE_HARFBUZZ
3103 /* HarfBuzz will potentially read font tables after the font has 3103 /* HarfBuzz will potentially read font tables after the font has
3104 been opened by Emacs. Keep the font open, and record its offset 3104 been opened by Emacs. Keep the font open, and record its offset