MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / parseHheaTable

Function parseHheaTable

libraries/p5.js:4957–4975  ·  view source on GitHub ↗
(data, start)

Source from the content-addressed store, hash-verified

4955
4956// Parse the horizontal header `hhea` table
4957function 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
4977function makeHheaTable(options) {
4978 return new table.Table('hhea', [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected