[serialize] Propagate error from hb-face

This commit is contained in:
Behdad Esfahbod 2018-12-18 13:23:32 -05:00
parent 9aebfb4182
commit f9417af29b
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ _hb_face_builder_data_reference_blob (hb_face_builder_data_t *data)
return nullptr; return nullptr;
hb_serialize_context_t c (buf, face_length); hb_serialize_context_t c (buf, face_length);
c.propagate_error (data->tables);
OT::OpenTypeFontFile *f = c.start_serialize<OT::OpenTypeFontFile> (); OT::OpenTypeFontFile *f = c.start_serialize<OT::OpenTypeFontFile> ();
bool is_cff = data->tables.lsearch (HB_TAG ('C','F','F',' ')) || data->tables.lsearch (HB_TAG ('C','F','F','2')); bool is_cff = data->tables.lsearch (HB_TAG ('C','F','F',' ')) || data->tables.lsearch (HB_TAG ('C','F','F','2'));