aboutsummaryrefslogtreecommitdiff
path: root/source/css/fonts.css
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-09-05 14:02:33 +0800
committerZhiming Wang <zmwangx@gmail.com>2015-09-05 14:02:33 +0800
commit9b7e2e49ce2bb0812c3134defe9279e924f11e51 (patch)
treec10f9ce2c91b16c2b0196b183adf8cd467287bea /source/css/fonts.css
parent207e955c251543a0042139e1d95c62cea67bf89b (diff)
downloadmy_new_personal_website-9b7e2e49ce2bb0812c3134defe9279e924f11e51.tar.xz
my_new_personal_website-9b7e2e49ce2bb0812c3134defe9279e924f11e51.zip
Self host webfonts
Sometimes (e.g., occasionally in China) Google/FontAwesome webfonts might not be available, rendering the whole site unusable.
Diffstat (limited to '')
-rw-r--r--source/css/fonts.css78
1 files changed, 78 insertions, 0 deletions
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 */
+}