Try fixing older bots

This commit is contained in:
Behdad Esfahbod 2018-10-09 08:20:10 -04:00
parent bee93e2697
commit e4f27f368f
1 changed files with 21 additions and 21 deletions

View File

@ -435,15 +435,9 @@ _hb_ot_shape_fallback_mark_position (const hb_ot_shape_plan_t *plan,
}
/* Performs font-assisted kerning. */
void
_hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
hb_font_t *font,
hb_buffer_t *buffer)
struct hb_ot_shape_fallback_kern_driver_t
{
struct driver_t
{
driver_t (hb_font_t *font_,
hb_ot_shape_fallback_kern_driver_t (hb_font_t *font_,
hb_buffer_t *buffer) :
font (font_), direction (buffer->props.direction) {}
@ -458,10 +452,16 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
hb_font_t *font;
hb_direction_t direction;
} driver (font, buffer);
hb_kern_machine_t<driver_t> machine (driver);
};
/* Performs font-assisted kerning. */
void
_hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
hb_font_t *font,
hb_buffer_t *buffer)
{
hb_ot_shape_fallback_kern_driver_t driver (font, buffer);
hb_kern_machine_t<hb_ot_shape_fallback_kern_driver_t> machine (driver);
machine.kern (font, buffer, plan->kern_mask);
}