self hosted fonts

This commit is contained in:
bigeagle 2014-11-15 18:46:38 +08:00
parent fd8bd6f5c4
commit 29d24427c6
13 changed files with 62 additions and 2 deletions

View File

@ -176,6 +176,4 @@ $(document).ready(function(){
});
</script>
<script src="https://edgefonts.tuna.tsinghua.edu.cn/lato.js"></script>
</html>

33
static/css/_Lato.scss Normal file
View File

@ -0,0 +1,33 @@
/* Webfont: Lato-Bold */@font-face {
font-family: 'Lato';
src: url('../fonts/Lato-Bold.eot'); /* IE9 Compat Modes */
src: url('../fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/Lato-Bold.woff') format('woff'), /* Modern Browsers */
url('../fonts/Lato-Bold.ttf') format('truetype');
font-style: normal;
font-weight: bold;
text-rendering: optimizeLegibility;
}
/* Webfont: Lato-Italic */@font-face {
font-family: 'Lato';
src: url('../fonts/Lato-Italic.eot'); /* IE9 Compat Modes */
src: url('../fonts/Lato-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/Lato-Italic.woff') format('woff'), /* Modern Browsers */
url('../fonts/Lato-Italic.ttf') format('truetype');
font-style: italic;
font-weight: normal;
text-rendering: optimizeLegibility;
}
/* Webfont: Lato-Regular */@font-face {
font-family: 'Lato';
src: url('../fonts/Lato-Regular.eot'); /* IE9 Compat Modes */
src: url('../fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/Lato-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
}

View File

@ -8,6 +8,33 @@ Version: 1.0
URL: http://alvarez.is
################################################################# */
/* Webfont: Lato-Bold */
@font-face {
font-family: 'Lato';
src: url("../fonts/Lato-Bold.eot");
/* IE9 Compat Modes */
src: url("../fonts/Lato-Bold.eot?#iefix") format("embedded-opentype"), url("../fonts/Lato-Bold.woff") format("woff"), url("../fonts/Lato-Bold.ttf") format("truetype");
font-style: normal;
font-weight: bold;
text-rendering: optimizeLegibility; }
/* Webfont: Lato-Italic */
@font-face {
font-family: 'Lato';
src: url("../fonts/Lato-Italic.eot");
/* IE9 Compat Modes */
src: url("../fonts/Lato-Italic.eot?#iefix") format("embedded-opentype"), url("../fonts/Lato-Italic.woff") format("woff"), url("../fonts/Lato-Italic.ttf") format("truetype");
font-style: italic;
font-weight: normal;
text-rendering: optimizeLegibility; }
/* Webfont: Lato-Regular */
@font-face {
font-family: 'Lato';
src: url("../fonts/Lato-Regular.eot");
/* IE9 Compat Modes */
src: url("../fonts/Lato-Regular.eot?#iefix") format("embedded-opentype"), url("../fonts/Lato-Regular.woff") format("woff"), url("../fonts/Lato-Regular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility; }
/* ################################################################
1. GENERAL STRUCTURES
################################################################# */

View File

@ -22,6 +22,8 @@ $color_footer_heading: #ffffff;
$color_footer_content: #bfc9d3;
$color_navbar_bg: #d3d3d3;
@import "Lato";
/* ################################################################
1. GENERAL STRUCTURES
################################################################# */

BIN
static/fonts/Lato-Bold.eot Normal file

Binary file not shown.

BIN
static/fonts/Lato-Bold.ttf Normal file

Binary file not shown.

BIN
static/fonts/Lato-Bold.woff Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.