unitsPerEm function
head.unitsPerEm of bytes, or null if it has no head table.
Implementation
int? unitsPerEm(ByteData bytes) {
final head = fontTableRecords(bytes)?['head'];
if (head == null || head.length < 54) return null;
return bytes.getUint16(head.offset + 18);
}