Skip to content

Commit eef3d7a

Browse files
update TB14 linux font hashes
1 parent 3d80fc7 commit eef3d7a

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

js/fonts.js

+21-6
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,12 @@ function get_system_fonts(METRIC) {
14371437
13px normal 400 -apple-system: [caption, menu]
14381438
*/
14391439
} else if ('linux' == isOS) {
1440-
if ('48e3d1b4' == hash) {notation = rfp_green} // 15px normal 400 sans-serif
1440+
if (isTB) {
1441+
// TB14: due to font config aliases
1442+
if ('ea0ea5d7' == hash) {notation = rfp_green} // 15px normal 400 Arimo
1443+
} else {
1444+
if ('48e3d1b4' == hash) {notation = rfp_green} // 15px normal 400 sans-serif
1445+
}
14411446
} else if ('android' == isOS) {
14421447
if ('7e83ef35' == hash) {notation = rfp_green} // 12px normal 400 Roboto
14431448
}
@@ -1491,11 +1496,21 @@ function get_widget_fonts(METRIC) {
14911496
monospace 13.3333px: [date, datetime-local, time],
14921497
monospace 13px: [textarea],
14931498
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 ('linux' == isOS) {
1500+
if (isTB) {
1501+
// TB14: due to font config aliases
1502+
/*Arimo 13.3333px: [19 items],
1503+
monospace 12px: [textarea],
1504+
monospace 13.3333px: [date, datetime-local, time],
1505+
sans-serif 13px: [image]*/
1506+
if ('edeba276' == hash) {notation = rfp_green}
1507+
} else {
1508+
/*monospace 12px: [textarea],
1509+
monospace 13.3333px: [date, datetime-local, time],
1510+
sans-serif 13.3333px: [19 items],
1511+
sans-serif 13px: [image]*/
1512+
if ('99054729' == hash) {notation = rfp_green}
1513+
}
14991514
} else if ('android' == isOS && '0833dc19' == hash) {notation = rfp_green
15001515
/*Roboto 13.3333px: [19 items],
15011516
monospace 12px: [textarea],

0 commit comments

Comments
 (0)