[serialize] Propagate error from hb-face
This commit is contained in:
parent
9aebfb4182
commit
f9417af29b
|
@ -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'));
|
||||||
|
|
Loading…
Reference in New Issue