@@ -8,14 +8,14 @@ function parseHmtxTableAll(data, start, numMetrics, numGlyphs, glyphs) {
88 let advanceWidth ;
99 const p = new parse . Parser ( data , start ) ;
1010 for ( let i = 0 ; i < numMetrics ; i += 1 ) {
11- advanceWidth = p . parseUShort ( ) ; // 16 bits
12- const leftSideBearing = p . parseShort ( ) ; // 16 bits
11+ advanceWidth = p . parseUShort ( ) ; // 16 bits
12+ const leftSideBearing = p . parseShort ( ) ; // 16 bits
1313
1414 const glyph = glyphs . get ( i ) ;
1515 glyph . advanceWidth = advanceWidth ;
1616 glyph . leftSideBearing = leftSideBearing ;
1717 }
18- // If numGlyphs > numMetrics
18+ // If numGlyphs > numMetrics
1919 for ( let i = numMetrics ; i < numGlyphs ; i += 1 ) {
2020 const glyph = glyphs . get ( i ) ;
2121 glyph . advanceWidth = advanceWidth ; //same as from previous loop
@@ -36,8 +36,7 @@ function parseHmtxTableOnLowMemory(font, data, start, numMetrics, numGlyphs) {
3636 leftSideBearing : leftSideBearing ,
3737 } ;
3838 }
39-
40- // If numGlyphs > numMetrics
39+ // If numGlyphs > numMetrics
4140 for ( let i = numMetrics ; i < numGlyphs ; i += 1 ) {
4241 font . _hmtxTableData [ i ] = {
4342 advanceWidth : advanceWidth , //same as from previous loop
0 commit comments