@@ -8,14 +8,14 @@ function parseHmtxTableAll(data, start, numMetrics, numGlyphs, glyphs) {
8
8
let advanceWidth ;
9
9
const p = new parse . Parser ( data , start ) ;
10
10
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
13
13
14
14
const glyph = glyphs . get ( i ) ;
15
15
glyph . advanceWidth = advanceWidth ;
16
16
glyph . leftSideBearing = leftSideBearing ;
17
17
}
18
- // If numGlyphs > numMetrics
18
+ // If numGlyphs > numMetrics
19
19
for ( let i = numMetrics ; i < numGlyphs ; i += 1 ) {
20
20
const glyph = glyphs . get ( i ) ;
21
21
glyph . advanceWidth = advanceWidth ; //same as from previous loop
@@ -36,8 +36,7 @@ function parseHmtxTableOnLowMemory(font, data, start, numMetrics, numGlyphs) {
36
36
leftSideBearing : leftSideBearing ,
37
37
} ;
38
38
}
39
-
40
- // If numGlyphs > numMetrics
39
+ // If numGlyphs > numMetrics
41
40
for ( let i = numMetrics ; i < numGlyphs ; i += 1 ) {
42
41
font . _hmtxTableData [ i ] = {
43
42
advanceWidth : advanceWidth , //same as from previous loop
0 commit comments