Minor
This commit is contained in:
parent
ae6d0259b4
commit
9aa2eb61e6
|
@ -61,7 +61,7 @@ struct CmapSubtableFormat0
|
||||||
HBUINT16 format; /* Format number is set to 0. */
|
HBUINT16 format; /* Format number is set to 0. */
|
||||||
HBUINT16 lengthZ; /* Byte length of this subtable. */
|
HBUINT16 lengthZ; /* Byte length of this subtable. */
|
||||||
HBUINT16 languageZ; /* Ignore. */
|
HBUINT16 languageZ; /* Ignore. */
|
||||||
HBUINT8 glyphIdArray[256];/* An array that maps character
|
HBUINT8 glyphIdArray[256];/* An array that maps character
|
||||||
* code to glyph index values. */
|
* code to glyph index values. */
|
||||||
public:
|
public:
|
||||||
DEFINE_SIZE_STATIC (6 + 256);
|
DEFINE_SIZE_STATIC (6 + 256);
|
||||||
|
@ -278,7 +278,8 @@ struct CmapSubtableLongSegmented
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
if (unlikely(!context->extend_min (*this))) return_trace (false);
|
if (unlikely(!context->extend_min (*this))) return_trace (false);
|
||||||
if (unlikely(!groups.serialize(context, group_count))) return_trace (false);
|
if (unlikely(!groups.serialize(context, group_count))) return_trace (false);
|
||||||
for (unsigned int i = 0; i < group_count; i++) {
|
for (unsigned int i = 0; i < group_count; i++)
|
||||||
|
{
|
||||||
const CmapSubtableLongGroup &group = group_supplier[i];
|
const CmapSubtableLongGroup &group = group_supplier[i];
|
||||||
memcpy(&groups[i], &group, sizeof(group));
|
memcpy(&groups[i], &group, sizeof(group));
|
||||||
}
|
}
|
||||||
|
@ -581,9 +582,7 @@ struct cmap
|
||||||
|
|
||||||
OT::Supplier<CmapSubtableLongGroup> group_supplier (&groups[0], groups.len, sizeof (CmapSubtableLongGroup));
|
OT::Supplier<CmapSubtableLongGroup> group_supplier (&groups[0], groups.len, sizeof (CmapSubtableLongGroup));
|
||||||
if (unlikely(!format12.serialize(&context, groups.len, group_supplier)))
|
if (unlikely(!format12.serialize(&context, groups.len, group_supplier)))
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
context.end_serialize ();
|
context.end_serialize ();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue