[CBDT] Return immediately if no data

This commit is contained in:
Behdad Esfahbod 2025-02-26 15:24:40 -07:00
parent 4d3642c188
commit 7504c67fb7

View file

@ -945,6 +945,8 @@ struct CBDT
bool paint_glyph (hb_font_t *font, hb_codepoint_t glyph, hb_paint_funcs_t *funcs, void *data) const
{
if (!has_data ()) return false;
hb_glyph_extents_t extents;
hb_glyph_extents_t pixel_extents;
hb_blob_t *blob = reference_png (font, glyph);