[name] More
This commit is contained in:
parent
75cd8c86bd
commit
e7c595a9f0
|
@ -62,13 +62,14 @@ hb_ot_name_get_utf (hb_face_t *face,
|
||||||
const OT::name_accelerator_t &name = _get_name (face);
|
const OT::name_accelerator_t &name = _get_name (face);
|
||||||
unsigned int idx = 0; //XXX
|
unsigned int idx = 0; //XXX
|
||||||
hb_bytes_t bytes = name.table->get_name (idx);
|
hb_bytes_t bytes = name.table->get_name (idx);
|
||||||
if (*text_size)
|
if (text_size && *text_size)
|
||||||
{
|
{
|
||||||
/* TODO Switch to walking string and validating. */
|
/* TODO Switch to walking string and validating. */
|
||||||
memcpy (text, bytes.arrayZ, MIN (*text_size * 2, bytes.len));
|
memcpy (text, bytes.arrayZ, MIN (*text_size * 2, bytes.len));
|
||||||
}
|
}
|
||||||
/* XXX Null-terminate. */
|
/* XXX Null-terminate. */
|
||||||
*text_size = bytes.len / 2; //TODO
|
if (text_size)
|
||||||
|
*text_size = bytes.len / 2; //TODO
|
||||||
/* TODO Fallback? */
|
/* TODO Fallback? */
|
||||||
return true; //XXX
|
return true; //XXX
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue