Index: third_party/harfbuzz-ng/src/hb-ot-layout.cc |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-layout.cc b/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
index f3e07139adbae15143f4a44506293101cf99cecd..ded3dcc843e46b90ee5299e10b150cc7ac2ec2d7 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
+++ b/third_party/harfbuzz-ng/src/hb-ot-layout.cc |
@@ -460,7 +460,8 @@ hb_ot_layout_substitute_lookup (hb_face_t *face, |
unsigned int lookup_index, |
hb_mask_t mask) |
{ |
- return _get_gsub (face).substitute_lookup (face, buffer, lookup_index, mask); |
+ hb_apply_context_t c (NULL, face, buffer, mask); |
+ return _get_gsub (face).substitute_lookup (&c, lookup_index); |
} |
void |
@@ -469,6 +470,14 @@ hb_ot_layout_substitute_finish (hb_buffer_t *buffer HB_UNUSED) |
GSUB::substitute_finish (buffer); |
} |
+void |
+hb_ot_layout_substitute_closure_lookup (hb_face_t *face, |
+ hb_set_t *glyphs, |
+ unsigned int lookup_index) |
+{ |
+ hb_closure_context_t c (face, glyphs); |
+ _get_gsub (face).closure_lookup (&c, lookup_index); |
+} |
/* |
* GPOS |
@@ -492,7 +501,8 @@ hb_ot_layout_position_lookup (hb_font_t *font, |
unsigned int lookup_index, |
hb_mask_t mask) |
{ |
- return _get_gpos (font->face).position_lookup (font, buffer, lookup_index, mask); |
+ hb_apply_context_t c (font, font->face, buffer, mask); |
+ return _get_gpos (font->face).position_lookup (&c, lookup_index); |
} |
void |