File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -396,14 +396,14 @@ function getTextFont(trace) {
396396 else if ( weight > 250 ) str += ' Light' ;
397397 else if ( weight > 150 ) str += ' Extra Light' ;
398398 else str += ' Thin' ;
399- } else if ( parts [ 0 ] === 'Open' && parts [ 1 ] === 'Sans' ) {
399+ } else if ( parts . slice ( 0 , 2 ) . join ( ' ' ) === 'Open Sans' ) {
400400 str = 'Open Sans' ;
401401 if ( weight > 750 ) str += ' Extrabold' ;
402402 else if ( weight > 650 ) str += ' Bold' ;
403403 else if ( weight > 550 ) str += ' Semibold' ;
404404 else if ( weight > 350 ) str += ' Regular' ;
405405 else str += ' Light' ;
406- } else { // Other families
406+ } else if ( parts . slice ( 0 , 3 ) . join ( ' ' ) === 'Klokantech Noto Sans' ) {
407407 str = 'Klokantech Noto Sans' ;
408408 if ( parts [ 3 ] === 'CJK' ) str += ' CJK' ;
409409 str += ( weight > 500 ) ? ' Bold' : ' Regular' ;
You can’t perform that action at this time.
0 commit comments