8223886: Add in font table referene
Reviewed-by: serb, psadhukhan, mschoene, rhalade
This commit is contained in:
parent
fa33b51760
commit
c6fc8506aa
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user