mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[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:
parent
7504c67fb7
commit
a0543453de
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue