(data, start)
| 4896 | |
| 4897 | // Parse the header `head` table |
| 4898 | function parseHeadTable(data, start) { |
| 4899 | var head = {}; |
| 4900 | var p = new parse.Parser(data, start); |
| 4901 | head.version = p.parseVersion(); |
| 4902 | head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000; |
| 4903 | head.checkSumAdjustment = p.parseULong(); |
| 4904 | head.magicNumber = p.parseULong(); |
| 4905 | check.argument(head.magicNumber === 0x5F0F3CF5, 'Font header has wrong magic number.'); |
| 4906 | head.flags = p.parseUShort(); |
| 4907 | head.unitsPerEm = p.parseUShort(); |
| 4908 | head.created = p.parseLongDateTime(); |
| 4909 | head.modified = p.parseLongDateTime(); |
| 4910 | head.xMin = p.parseShort(); |
| 4911 | head.yMin = p.parseShort(); |
| 4912 | head.xMax = p.parseShort(); |
| 4913 | head.yMax = p.parseShort(); |
| 4914 | head.macStyle = p.parseUShort(); |
| 4915 | head.lowestRecPPEM = p.parseUShort(); |
| 4916 | head.fontDirectionHint = p.parseShort(); |
| 4917 | head.indexToLocFormat = p.parseShort(); // 50 |
| 4918 | head.glyphDataFormat = p.parseShort(); |
| 4919 | return head; |
| 4920 | } |
| 4921 | |
| 4922 | function makeHeadTable(options) { |
| 4923 | return new table.Table('head', [ |
nothing calls this directly
no outgoing calls
no test coverage detected