Skip to content

Commit

Permalink
Add Custom Fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
hql287 committed Sep 23, 2017
1 parent 37871dc commit b768430
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions preview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,62 @@
<link rel="stylesheet" href="../static/css/ionicons.min.css" >
<link rel="stylesheet" href="../static/css/general.css" >
<style>
/* Montserrat */
@font-face {
font-family: 'Montserrat';
src:
local('Montserrat'),
url(../static/fonts/Montserrat/Montserrat-Light.ttf),
format('truetype');
font-weight: 300;
}

@font-face {
font-family: 'Montserrat';
src:
local('Montserrat'),
url(../static/fonts/Montserrat/Montserrat.ttf),
format('truetype');
font-weight: 400;
}

@font-face {
font-family: 'Montserrat';
src:
local('Montserrat'),
url(../static/fonts/Montserrat/Montserrat-Medium.ttf),
format('truetype');
font-weight: 500;
}

/* Source Serif Pro */
@font-face {
font-family: 'Source Serif Pro';
src:
local('Source Serif Pro'),
url(../static/fonts/SourceSerifPro/SourceSerifPro-Regular.ttf),
format('truetype');
font-weight: 400;
}
@page {
size: A4;
margin: 0;
}
@media print {
.no-print,
.no-print * {
display: none !important;
}
.page {
margin: 0;
border: initial;
border-radius: initial;
width: initial;
min-height: initial;
box-shadow: initial;
background: initial;
page-break-after: always;
}
}
</style>
</head>
Expand Down
Binary file added static/fonts/Montserrat/Montserrat-Italic.ttf
Binary file not shown.
Binary file added static/fonts/Montserrat/Montserrat-Medium.ttf
Binary file not shown.
Binary file not shown.

0 comments on commit b768430

Please sign in to comment.