Skip to content

Commit

Permalink
Change: use local fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
qinwf committed Dec 1, 2016
1 parent 36884cd commit c19925a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion _includes/inf.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,36 @@
});

WebFontConfig = {
google: {
custom: {
families: ['Source Sans Pro']
},
timeout: 4000 // Set the fonts loading timeout to 4 seconds
};

{% include webfont.min.js %}

<style type="text/css">

/* source-sans-pro-regular - latin-ext_latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro'), local('SourceSansPro-Regular'),
url('/fonts/source-sans-pro-v9-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/source-sans-pro-v9-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* source-sans-pro-italic - latin-ext_latin */
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 400;
src: local('Source Sans Pro Italic'), local('SourceSansPro-It'),
url('/fonts/source-sans-pro-v9-latin-ext_latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/source-sans-pro-v9-latin-ext_latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

</style>
</script>

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c19925a

Please sign in to comment.