File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -396,14 +396,14 @@ function getTextFont(trace) {
396
396
else if ( weight > 250 ) str += ' Light' ;
397
397
else if ( weight > 150 ) str += ' Extra Light' ;
398
398
else str += ' Thin' ;
399
- } else if ( parts [ 0 ] === 'Open' && parts [ 1 ] === 'Sans' ) {
399
+ } else if ( parts . slice ( 0 , 2 ) . join ( ' ' ) === 'Open Sans' ) {
400
400
str = 'Open Sans' ;
401
401
if ( weight > 750 ) str += ' Extrabold' ;
402
402
else if ( weight > 650 ) str += ' Bold' ;
403
403
else if ( weight > 550 ) str += ' Semibold' ;
404
404
else if ( weight > 350 ) str += ' Regular' ;
405
405
else str += ' Light' ;
406
- } else { // Other families
406
+ } else if ( parts . slice ( 0 , 3 ) . join ( ' ' ) === 'Klokantech Noto Sans' ) {
407
407
str = 'Klokantech Noto Sans' ;
408
408
if ( parts [ 3 ] === 'CJK' ) str += ' CJK' ;
409
409
str += ( weight > 500 ) ? ' Bold' : ' Regular' ;
You can’t perform that action at this time.
0 commit comments