[colr] Make paint_image work again

This commit is contained in:
Behdad Esfahbod committed 2022-12-23 13:37:59 -07:00
1 parent 9672aa8610
commit 14bf3aaa8d
2 files changed
-8

No files matched your search

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