[colr] Make paint_image work again
This commit is contained in:
parent
9672aa8610
commit
14bf3aaa8d
|
@ -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…
Reference in New Issue