mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
Use woff instead of ttf font
This commit is contained in:
parent
2cd3ee9698
commit
5c7d977ae0
File diff suppressed because one or more lines are too long
@ -709,6 +709,8 @@ func mimeTypeForFile(file string) string {
|
|||||||
return "image/png"
|
return "image/png"
|
||||||
case ".ttf":
|
case ".ttf":
|
||||||
return "application/x-font-ttf"
|
return "application/x-font-ttf"
|
||||||
|
case ".woff":
|
||||||
|
return "application/x-font-woff"
|
||||||
default:
|
default:
|
||||||
return mime.TypeByExtension(ext)
|
return mime.TypeByExtension(ext)
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
BIN
gui/raleway-500.woff
Normal file
BIN
gui/raleway-500.woff
Normal file
Binary file not shown.
@ -2,5 +2,5 @@
|
|||||||
font-family: 'Raleway';
|
font-family: 'Raleway';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
src: local('Raleway'), url(raleway-500.ttf) format('truetype');
|
src: local('Raleway'), url(raleway-500.woff) format('woff');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user