[colr] Make paint_image work again

pull/3938/head
Behdad Esfahbod 2 years ago
parent 9672aa8610
commit 14bf3aaa8d
  1. 4
      src/hb-ot-color-cbdt-table.hh
  2. 4
      src/hb-ot-color-sbix-table.hh

@ -947,12 +947,8 @@ struct CBDT
if (unlikely (!hb_font_get_glyph_extents (font, glyph, &extents)))
return false;
funcs->push_root_transform (data, font);
funcs->image (data, blob, HB_PAINT_IMAGE_FORMAT_PNG, &extents);
funcs->pop_root_transform (data);
hb_blob_destroy (blob);
return true;
}

@ -248,12 +248,8 @@ struct sbix
if (!hb_font_get_glyph_extents (font, glyph, &extents))
return false;
funcs->push_root_transform (data, font);
funcs->image (data, blob, HB_PAINT_IMAGE_FORMAT_PNG, &extents);
funcs->pop_root_transform (data);
hb_blob_destroy (blob);
return true;
}

Loading…
Cancel
Save