mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[glyf] Return earlier if table is empty
This commit is contained in:
parent
0cd98ebbf7
commit
6ca8852eff
1 changed files with 5 additions and 2 deletions
|
@ -503,9 +503,12 @@ struct glyf_accelerator_t
|
|||
get_path_at (hb_font_t *font, hb_codepoint_t gid, hb_draw_session_t &draw_session,
|
||||
hb_array_t<const int> coords,
|
||||
hb_glyf_scratch_t &scratch) const
|
||||
{ return get_points (font, gid, glyf_impl::path_builder_t (font, draw_session),
|
||||
{
|
||||
if (!has_data ()) return false;
|
||||
return get_points (font, gid, glyf_impl::path_builder_t (font, draw_session),
|
||||
coords,
|
||||
scratch); }
|
||||
scratch);
|
||||
}
|
||||
|
||||
#ifndef HB_NO_VAR
|
||||
const gvar_accelerator_t *gvar;
|
||||
|
|
Loading…
Add table
Reference in a new issue