@@ -82,13 +82,14 @@ let fntMaster = {
82
82
// TB whitelist system
83
83
allowlist : {
84
84
android : [ ] ,
85
- linux : [ ] ,
85
+ linux : [
86
+ 'Arial' , 'Courier' , 'Courier New' , 'Helvetica' , 'Times' , 'Times New Roman' // aliases
87
+ ] ,
86
88
mac : [
87
- 'AppleGothic' , 'Apple Color Emoji' , 'Arial' , 'Courier' , 'Courier New' ,
89
+ 'AppleGothic' , 'Apple Color Emoji' , 'Arial' , 'Arial Black' , 'Arial Narrow' , ' Courier', 'Courier New' ,
88
90
'Geneva' , 'Georgia' , 'Heiti TC' , 'Helvetica' , 'Helvetica Neue' , 'Hiragino Kaku Gothic ProN' ,
89
91
'Kailasa' , 'Lucida Grande' , 'Menlo' , 'Monaco' , 'PingFang HK' , 'PingFang SC' , 'PingFang TC' , 'Songti SC' ,
90
92
'Songti TC' , 'Tahoma' , 'Thonburi' , 'Times' , 'Times New Roman' , 'Verdana' ,
91
- // 'Arial Black','Arial Narrow', // hardcode these in once we are min Smart 128
92
93
// always
93
94
'-apple-system' ,
94
95
/* variants
@@ -507,16 +508,6 @@ function set_fntList() {
507
508
fntData . full = array
508
509
fntData . full . push ( fntFake )
509
510
} else if ( isTB ) {
510
- // TB #42494
511
- // ToDo: when min Smart is 128, just hardcode into allowlist
512
- if ( isVer > 115 ) {
513
- fntMaster . allowlist . mac . push ( 'Arial Black' , 'Arial Narrow' )
514
- fntMaster . allowlist . linux . push ( 'Arial' , 'Courier' , 'Courier New' , 'Helvetica' , 'Times' , 'Times New Roman' )
515
- } else {
516
- fntMaster . blocklist . mac . push ( 'Arial Black' , 'Arial Narrow' )
517
- fntMaster . blocklist . linux . push ( 'Arial' , 'Courier' , 'Courier New' , 'Helvetica' , 'Times' , 'Times New Roman' ) // aliases
518
- }
519
-
520
511
// desktop TB
521
512
let aBundled = [ ]
522
513
fntMaster . bundled . notoboth . forEach ( function ( fnt ) { aBundled . push ( 'Noto Sans ' + fnt , 'Noto Serif ' + fnt ) } )
@@ -585,11 +576,7 @@ function set_fntList() {
585
576
if ( 'android' == isOS ) {
586
577
fntBtn = fntBtnAll
587
578
} else if ( isTB ) {
588
- if ( 'linux' == isOS && isVer < 128 ) {
589
- fntBtn = fntBtnBundled + ' + ' + fntBtnUnexpected + ' = ' + fntBtnAll
590
- } else {
591
- fntBtn = fntBtnSystem + ' + ' + fntBtnBundled + ' = ' + fntBtnBase + ' + ' + fntBtnUnexpected + ' = ' + fntBtnAll
592
- }
579
+ fntBtn = fntBtnSystem + ' + ' + fntBtnBundled + ' = ' + fntBtnBase + ' + ' + fntBtnUnexpected + ' = ' + fntBtnAll
593
580
} else if ( 'windows' == isOS ) {
594
581
fntBtn = fntBtnBase + ' + ' + fntBtnBaseLang + ' = ' + fntBtnFPP + ' + ' + fntBtnUnexpected + ' = ' + fntBtnAll
595
582
} else {
@@ -1407,8 +1394,7 @@ function get_system_fonts(METRIC) {
1407
1394
'system_fonts' : [ 'caption' , 'icon' , 'menu' , 'message-box' , 'small-caption' , 'status-bar' ]
1408
1395
}
1409
1396
let aProps = [ 'font-size' , 'font-style' , 'font-weight' , 'font-family' ]
1410
- let hash , btn = '' , data = { } , notation = ''
1411
- if ( 'moz_fonts' == METRIC ) { notation = default_red } else if ( isTB || isVer > 127 ) { notation = rfp_red }
1397
+ let hash , btn = '' , data = { } , notation = 'moz_fonts' == METRIC ? default_red : rfp_red
1412
1398
1413
1399
try {
1414
1400
let tmpdata = { }
@@ -1438,7 +1424,7 @@ function get_system_fonts(METRIC) {
1438
1424
} else if ( 'android' == isOS ) {
1439
1425
if ( '7e76c987' == hash ) { notation = default_green } // 16px normal 400 sans-serif
1440
1426
}
1441
- } else if ( isTB || isVer > 127 ) {
1427
+ } else {
1442
1428
// RFP FF128+
1443
1429
if ( 'windows' == isOS ) {
1444
1430
if ( 'a75e7a17' == hash ) { notation = rfp_green } // 12px normal 400 sans-serif
@@ -1471,7 +1457,7 @@ function get_widget_fonts(METRIC) {
1471
1457
'password' , 'radio' , 'range' , 'reset' , 'search' , 'select' , 'submit' , 'tel' , 'text' , 'textarea' , 'time' , 'url' , 'week' ,
1472
1458
]
1473
1459
let aProps = [ 'font-family' , 'font-size' ]
1474
- let hash , btn = '' , data = { } , notation = ( isTB || isVer > 127 ) ? rfp_red : ''
1460
+ let hash , btn = '' , data = { } , notation = rfp_red
1475
1461
try {
1476
1462
let tmpdata = { }
1477
1463
aList . forEach ( function ( name ) {
@@ -1495,28 +1481,26 @@ function get_widget_fonts(METRIC) {
1495
1481
hash = mini ( data )
1496
1482
btn = addButton ( 12 , METRIC , Object . keys ( data ) . length + '/' + count )
1497
1483
// RFP FF128+
1498
- if ( isTB || isVer > 127 ) {
1499
- if ( 'windows' == isOS && '24717aa8' == hash ) { notation = rfp_green
1500
- /*monospace 13.3333px: [date, datetime-local, time],
1501
- monospace 13px: [textarea],
1502
- sans-serif 13.3333px: [19 items],
1503
- sans-serif 13px: [image]*/
1504
- } else if ( 'mac' == isOS && '12e7f88a' == hash ) { notation = rfp_green
1505
- /*-apple-system 13.3333px: [19 items],
1506
- monospace 13.3333px: [date, datetime-local, time],
1507
- monospace 13px: [textarea],
1508
- sans-serif 13px: [image] */
1509
- } else if ( 'linux' == isOS && '99054729' == hash ) { notation = rfp_green
1510
- /*monospace 12px: [textarea],
1511
- monospace 13.3333px: [date, datetime-local, time],
1512
- sans-serif 13.3333px: [19 items],
1513
- sans-serif 13px: [image]*/
1514
- } else if ( 'android' == isOS && '0833dc19' == hash ) { notation = rfp_green
1515
- /*Roboto 13.3333px: [19 items],
1516
- monospace 12px: [textarea],
1517
- monospace 13.3333px: [date, datetime-local, time],
1518
- sans-serif 13px: [image]*/
1519
- }
1484
+ if ( 'windows' == isOS && '24717aa8' == hash ) { notation = rfp_green
1485
+ /*monospace 13.3333px: [date, datetime-local, time],
1486
+ monospace 13px: [textarea],
1487
+ sans-serif 13.3333px: [19 items],
1488
+ sans-serif 13px: [image]*/
1489
+ } else if ( 'mac' == isOS && '12e7f88a' == hash ) { notation = rfp_green
1490
+ /*-apple-system 13.3333px: [19 items],
1491
+ monospace 13.3333px: [date, datetime-local, time],
1492
+ monospace 13px: [textarea],
1493
+ sans-serif 13px: [image] */
1494
+ } else if ( 'linux' == isOS && '99054729' == hash ) { notation = rfp_green
1495
+ /*monospace 12px: [textarea],
1496
+ monospace 13.3333px: [date, datetime-local, time],
1497
+ sans-serif 13.3333px: [19 items],
1498
+ sans-serif 13px: [image]*/
1499
+ } else if ( 'android' == isOS && '0833dc19' == hash ) { notation = rfp_green
1500
+ /*Roboto 13.3333px: [19 items],
1501
+ monospace 12px: [textarea],
1502
+ monospace 13.3333px: [date, datetime-local, time],
1503
+ sans-serif 13px: [image]*/
1520
1504
}
1521
1505
} catch ( e ) {
1522
1506
hash = e ; data = zErrLog
0 commit comments