unitsPerEm function

int? unitsPerEm(
  1. ByteData bytes
)

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);
}