nicknezis commented on pull request #3541:
URL: https://github.com/apache/incubator-heron/pull/3541#issuecomment-645796420
There is also an option to support only Modern browsers:
```
/* trykker-regular - latin-ext_latin */
@font-face {
font-family: 'Trykker';
font-style: normal;
font-weight: 400;
src: local('Trykker Regular'), local('Trykker-Regular'),
url('../fonts/trykker-v8-latin-ext_latin-regular.woff2')
format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/trykker-v8-latin-ext_latin-regular.woff')
format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
```
I opted for the more generic default:
```
@font-face {
font-family: 'Trykker';
font-style: normal;
font-weight: 400;
src: url('../fonts/trykker-v8-latin-ext_latin-regular.eot'); /* IE9 Compat
Modes */
src: local('Trykker Regular'), local('Trykker-Regular'),
url('../fonts/trykker-v8-latin-ext_latin-regular.eot?#iefix')
format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/trykker-v8-latin-ext_latin-regular.woff2')
format('woff2'), /* Super Modern Browsers */
url('../fonts/trykker-v8-latin-ext_latin-regular.woff')
format('woff'), /* Modern Browsers */
url('../fonts/trykker-v8-latin-ext_latin-regular.ttf')
format('truetype'), /* Safari, Android, iOS */
url('../fonts/trykker-v8-latin-ext_latin-regular.svg#Trykker')
format('svg'); /* Legacy iOS */
}
```
This adds more font formats to the distribution which slightly increases the
size, but it might better support older browsers. I'm happy to change the logic
to only support newer browsers if you think that would be best.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]