mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[colr] Make paint_image work again
This commit is contained in:
1 parent
9672aa8610
commit
14bf3aaa8d
2 files changed
-8
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user