Try fixing older bots
This commit is contained in:
parent
bee93e2697
commit
e4f27f368f
|
@ -435,15 +435,9 @@ _hb_ot_shape_fallback_mark_position (const hb_ot_shape_plan_t *plan,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Performs font-assisted kerning. */
|
struct hb_ot_shape_fallback_kern_driver_t
|
||||||
void
|
|
||||||
_hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
|
|
||||||
hb_font_t *font,
|
|
||||||
hb_buffer_t *buffer)
|
|
||||||
{
|
{
|
||||||
struct driver_t
|
hb_ot_shape_fallback_kern_driver_t (hb_font_t *font_,
|
||||||
{
|
|
||||||
driver_t (hb_font_t *font_,
|
|
||||||
hb_buffer_t *buffer) :
|
hb_buffer_t *buffer) :
|
||||||
font (font_), direction (buffer->props.direction) {}
|
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_font_t *font;
|
||||||
hb_direction_t direction;
|
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);
|
machine.kern (font, buffer, plan->kern_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue