mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[CBDT] Return immediately if no data
This commit is contained in:
parent
4d3642c188
commit
7504c67fb7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue