(data, start)
| 4955 | |
| 4956 | // Parse the horizontal header `hhea` table |
| 4957 | function parseHheaTable(data, start) { |
| 4958 | var hhea = {}; |
| 4959 | var p = new parse.Parser(data, start); |
| 4960 | hhea.version = p.parseVersion(); |
| 4961 | hhea.ascender = p.parseShort(); |
| 4962 | hhea.descender = p.parseShort(); |
| 4963 | hhea.lineGap = p.parseShort(); |
| 4964 | hhea.advanceWidthMax = p.parseUShort(); |
| 4965 | hhea.minLeftSideBearing = p.parseShort(); |
| 4966 | hhea.minRightSideBearing = p.parseShort(); |
| 4967 | hhea.xMaxExtent = p.parseShort(); |
| 4968 | hhea.caretSlopeRise = p.parseShort(); |
| 4969 | hhea.caretSlopeRun = p.parseShort(); |
| 4970 | hhea.caretOffset = p.parseShort(); |
| 4971 | p.relativeOffset += 8; |
| 4972 | hhea.metricDataFormat = p.parseShort(); |
| 4973 | hhea.numberOfHMetrics = p.parseUShort(); |
| 4974 | return hhea; |
| 4975 | } |
| 4976 | |
| 4977 | function makeHheaTable(options) { |
| 4978 | return new table.Table('hhea', [ |
nothing calls this directly
no outgoing calls
no test coverage detected