[CBDT] Change has_data() to be more accurate

get_length() was returning the Null table length if table
was not present.
This commit is contained in:
Behdad Esfahbod 2025-02-26 15:36:03 -07:00
parent 7504c67fb7
commit a0543453de

View file

@ -941,7 +941,7 @@ struct CBDT
}
}
bool has_data () const { return cbdt.get_length (); }
bool has_data () const { return cbdt->version.major; }
bool paint_glyph (hb_font_t *font, hb_codepoint_t glyph, hb_paint_funcs_t *funcs, void *data) const
{