This is a temporary hack just to avoid incorrect shaping results, pending proper support for caching shape-plans with variation coordinates.
This commit is contained in:
parent
db446cce4e
commit
19e77e01bc
|
@ -520,6 +520,9 @@ hb_shape_plan_create_cached2 (hb_face_t *face,
|
|||
|
||||
retry:
|
||||
hb_face_t::plan_node_t *cached_plan_nodes = (hb_face_t::plan_node_t *) hb_atomic_ptr_get (&face->shape_plans);
|
||||
|
||||
/* Don't look for plan in the cache if there were variation coordinates XXX Fix me. */
|
||||
if (!hb_coords_present (coords, num_coords))
|
||||
for (hb_face_t::plan_node_t *node = cached_plan_nodes; node; node = node->next)
|
||||
if (hb_shape_plan_matches (node->shape_plan, &proposal))
|
||||
{
|
||||
|
@ -528,7 +531,6 @@ retry:
|
|||
}
|
||||
|
||||
/* Not found. */
|
||||
|
||||
hb_shape_plan_t *shape_plan = hb_shape_plan_create2 (face, props,
|
||||
user_features, num_user_features,
|
||||
coords, num_coords,
|
||||
|
|
Loading…
Reference in New Issue