From 14bf3aaa8d276470c826f095bc0f8d57ff930b38 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 18 Dec 2022 12:59:35 -0700 Subject: [PATCH] [colr] Make paint_image work again --- src/hb-ot-color-cbdt-table.hh | 4 ---- src/hb-ot-color-sbix-table.hh | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/hb-ot-color-cbdt-table.hh b/src/hb-ot-color-cbdt-table.hh index bb776483a..d956a7272 100644 --- a/src/hb-ot-color-cbdt-table.hh +++ b/src/hb-ot-color-cbdt-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; } diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 32b5b074d..bafb45417 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -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; }