[colr] Make paint_image work again

This commit is contained in:
Behdad Esfahbod 2022-12-18 12:59:35 -07:00
parent 9672aa8610
commit 14bf3aaa8d
2 changed files with 0 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;
}