You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, fonts for sans/serif/monospace/fantasy/etc. are hardcoded for Win and Mac. And there are only one font for each type.
The problem is that it doesn't guarantee that this font is present. For example, a default Win10 contains the Impact font, but the one used by TravisCI - doesn't.
Here is the list of font families available in a Travis instance:
Arial
Bahnschrift
Calibri
Cambria
Cambria Math
Comic Sans MS
Consolas
Courier New
Ebrima
Gadugi
Georgia
Ink Free
Javanese Text
Leelawadee UI
Lucida Console
Malgun Gothic
Microsoft Himalaya
Microsoft JhengHei
Microsoft JhengHei UI
Microsoft New Tai Lue
Microsoft PhagsPa
Microsoft Tai Le
Microsoft YaHei
Microsoft YaHei UI
Microsoft Yi Baiti
Mongolian Baiti
MV Boli
Myanmar Text
Nirmala UI
Segoe MDL2 Assets
Segoe Print
Segoe UI
Segoe UI Emoji
Segoe UI Historic
Segoe UI Symbol
SimSun
NSimSun
Times New Roman
Trebuchet MS
Verdana
Webdings
Wingdings
Yu Gothic
Yu Gothic UI
Not sure with one we can use as fantasy. Maybe Ink Free?
The text was updated successfully, but these errors were encountered:
So we can just hardcode a list of fonts for each style and check them all before returning NotFound. At least on Windows and macOS. Linux/fontconfig already supports CSS-style font names.
Or simple ignore this issue, since there are no obvious solution.
Currently, fonts for sans/serif/monospace/fantasy/etc. are hardcoded for Win and Mac. And there are only one font for each type.
The problem is that it doesn't guarantee that this font is present. For example, a default Win10 contains the Impact font, but the one used by TravisCI - doesn't.
Here is the list of font families available in a Travis instance:
Not sure with one we can use as fantasy. Maybe Ink Free?
The text was updated successfully, but these errors were encountered: