8223886: Add in font table referene

Reviewed-by: serb, psadhukhan, mschoene, rhalade
This commit is contained in:
Phil Race 2019-05-22 08:42:11 -07:00
parent fa33b51760
commit c6fc8506aa

View File

@ -351,6 +351,9 @@ reference_table(hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data) {
}
length = env->GetArrayLength(tableBytes);
buffer = calloc(length, sizeof(jbyte));
if (buffer == NULL) {
return NULL;
}
env->GetByteArrayRegion(tableBytes, 0, length, (jbyte*)buffer);
return hb_blob_create((const char *)buffer, length,