Skip to content

Commit

Permalink
feat: include .woff and .woff2 versions for text fonts (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermodotn authored Feb 6, 2025
1 parent b9e18a1 commit 81956c3
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 1 deletion.
Binary file added fonts/Lato/Lato-Regular.woff
Binary file not shown.
Binary file added fonts/Lato/Lato-Regular.woff2
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Black.woff
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Black.woff2
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Bold.woff
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Bold.woff2
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Regular.woff
Binary file not shown.
Binary file added fonts/Source_Sans_Pro/SourceSansPro-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
52 changes: 51 additions & 1 deletion fonts/main.css
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
/*! Source Sans Pro */@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:url(Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:url(Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:url(Source_Sans_Pro/SourceSansPro-Bold.ttf) format('truetype')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:url(Source_Sans_Pro/SourceSansPro-Black.ttf) format('truetype')}/*! Lato */@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(Lato/Lato-Regular.ttf) format('truetype')}
/* Source Sans Pro */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('Source_Sans_Pro/SourceSansPro-Regular.woff2') format('woff2'),
url('Source_Sans_Pro/SourceSansPro-Regular.woff') format('woff'),
url('Source_Sans_Pro/SourceSansPro-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('Source_Sans_Pro/SourceSansPro-SemiBold.woff2') format('woff2'),
url('Source_Sans_Pro/SourceSansPro-SemiBold.woff') format('woff'),
url('Source_Sans_Pro/SourceSansPro-SemiBold.ttf') format('truetype');
}

@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('Source_Sans_Pro/SourceSansPro-Bold.woff2') format('woff2'),
url('Source_Sans_Pro/SourceSansPro-Bold.woff') format('woff'),
url('Source_Sans_Pro/SourceSansPro-Bold.ttf') format('truetype');
}

@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 900;
font-display: swap;
src: url('Source_Sans_Pro/SourceSansPro-Black.woff2') format('woff2'),
url('Source_Sans_Pro/SourceSansPro-Black.woff') format('woff'),
url('Source_Sans_Pro/SourceSansPro-Black.ttf') format('truetype');
}

/* Lato */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('Lato/Lato-Regular.woff2') format('woff2'),
url('Lato/Lato-Regular.woff') format('woff'),
url('Lato/Lato-Regular.ttf') format('truetype');
}

0 comments on commit 81956c3

Please sign in to comment.