Skip to content

Commit

Permalink
Add Linux lists for font-face/TB. (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
PieroV authored Dec 12, 2024
1 parent f258ff0 commit 291fe75
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ let fntMaster = {
linux: [
'Arial','Courier','Courier New','Helvetica','Times','Times New Roman' // aliases
],
linuxface: [
// Bundled
'Arimo Regular', 'Cousine', 'Cousine Regular', 'Tinos', 'Tinos Regular',
],
mac: [
'AppleGothic','Apple Color Emoji','Arial','Arial Black','Arial Narrow','Courier','Courier New',
'Geneva','Georgia','Heiti TC','Helvetica','Helvetica Neue','Hiragino Kaku Gothic ProN',
Expand Down Expand Up @@ -146,6 +150,13 @@ let fntMaster = {
'Liberation Mono','Liberation Sans','Liberation Serif', // popular
'Noto Serif Hmong Nyiakeng','Noto Sans Symbols2','STIX Math', // TB12 fontnames
],
linuxface: [
'Arimo', // Arimo without regular seems not to work, double check it.
'Arial', 'Arial Regular', 'Courier New', 'Courier New Regular', // Aliases, expected not to work!
// Common Linux fonts - if we find them we have a leak
'DejaVu Sans', 'FreeSans', 'Liberation Sans', 'Nimbus Sans Regular',
'Nimbus Sans', 'Cantarell Regular', 'Ubuntu',
],
mac: [
'Apple Symbols','Avenir','Charter','Impact','Palatino','Rockwell', // system
'Noto Serif Hmong Nyiakeng','Noto Sans Symbols2','STIX Math', // TB12 fontnames
Expand Down

0 comments on commit 291fe75

Please sign in to comment.