Skip to content

Commit 87ef5c1

Browse files
authored
Fix font src attribute
The `format('truetype')` bit should not be preceded by a comma. It breaks in Chrome (at least). See https://css-tricks.com/snippets/css/using-font-face/ for an example.
1 parent 36af368 commit 87ef5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/html/css/typography.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
font-family: 'Droid Sans';
44
font-style: normal;
55
font-weight: 400;
6-
src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf'), format('truetype');
6+
src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf') format('truetype');
77
}
88
/* Google Font's Droid Sans Bold */
99
@font-face {
1010
font-family: 'Droid Sans';
1111
font-style: normal;
1212
font-weight: 700;
13-
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf'), format('truetype');
13+
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf') format('truetype');
1414
}

0 commit comments

Comments
 (0)