From 9b7e2e49ce2bb0812c3134defe9279e924f11e51 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sat, 5 Sep 2015 14:02:33 +0800 Subject: Self host webfonts Sometimes (e.g., occasionally in China) Google/FontAwesome webfonts might not be available, rendering the whole site unusable. --- source/css/fonts.css | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 source/css/fonts.css (limited to 'source/css/fonts.css') diff --git a/source/css/fonts.css b/source/css/fonts.css new file mode 100644 index 00000000..e8995384 --- /dev/null +++ b/source/css/fonts.css @@ -0,0 +1,78 @@ +/* droid-sans-mono-regular - latin */ +@font-face { + font-family: 'Droid Sans Mono'; + font-style: normal; + font-weight: 400; + src: url('../fonts/droid-sans-mono-v7-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('Droid Sans Mono'), local('DroidSansMono'), + url('../fonts/droid-sans-mono-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/droid-sans-mono-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/droid-sans-mono-v7-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('../fonts/droid-sans-mono-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/droid-sans-mono-v7-latin-regular.svg#DroidSansMono') format('svg'); /* Legacy iOS */ +} +/* open-sans-regular - latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: url('../fonts/open-sans-v13-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('Open Sans'), local('OpenSans'), + url('../fonts/open-sans-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/open-sans-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/open-sans-v13-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('../fonts/open-sans-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/open-sans-v13-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */ +} +/* pt-serif-regular - latin */ +@font-face { + font-family: 'PT Serif'; + font-style: normal; + font-weight: 400; + src: url('../fonts/pt-serif-v8-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('PT Serif'), local('PTSerif-Regular'), + url('../fonts/pt-serif-v8-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/pt-serif-v8-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/pt-serif-v8-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('../fonts/pt-serif-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/pt-serif-v8-latin-regular.svg#PTSerif') format('svg'); /* Legacy iOS */ +} +/* pt-serif-italic - latin */ +@font-face { + font-family: 'PT Serif'; + font-style: italic; + font-weight: 400; + src: url('../fonts/pt-serif-v8-latin-italic.eot'); /* IE9 Compat Modes */ + src: local('PT Serif Italic'), local('PTSerif-Italic'), + url('../fonts/pt-serif-v8-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/pt-serif-v8-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/pt-serif-v8-latin-italic.woff') format('woff'), /* Modern Browsers */ + url('../fonts/pt-serif-v8-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/pt-serif-v8-latin-italic.svg#PTSerif') format('svg'); /* Legacy iOS */ +} +/* pt-serif-700 - latin */ +@font-face { + font-family: 'PT Serif'; + font-style: normal; + font-weight: 700; + src: url('../fonts/pt-serif-v8-latin-700.eot'); /* IE9 Compat Modes */ + src: local('PT Serif Bold'), local('PTSerif-Bold'), + url('../fonts/pt-serif-v8-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/pt-serif-v8-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/pt-serif-v8-latin-700.woff') format('woff'), /* Modern Browsers */ + url('../fonts/pt-serif-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/pt-serif-v8-latin-700.svg#PTSerif') format('svg'); /* Legacy iOS */ +} +/* pt-serif-700italic - latin */ +@font-face { + font-family: 'PT Serif'; + font-style: italic; + font-weight: 700; + src: url('../fonts/pt-serif-v8-latin-700italic.eot'); /* IE9 Compat Modes */ + src: local('PT Serif Bold Italic'), local('PTSerif-BoldItalic'), + url('../fonts/pt-serif-v8-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/pt-serif-v8-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/pt-serif-v8-latin-700italic.woff') format('woff'), /* Modern Browsers */ + url('../fonts/pt-serif-v8-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/pt-serif-v8-latin-700italic.svg#PTSerif') format('svg'); /* Legacy iOS */ +} -- cgit v1.2.1