Skip to content

Commit

Permalink
Self-hosting fonts (#241)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos Bonic <[email protected]>
  • Loading branch information
Janos authored Jan 8, 2024
1 parent e6d8f6d commit 3f8b969
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,[email protected],400;9..40,700&display=swap");
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/dmsans-latin-ext.woff2") format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/dmsans-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/dmsans-bold-latin-ext.woff2") format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/dmsans-bold-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@tailwind base;
@tailwind components;
Expand Down
Binary file added src/fonts/dmsans-bold-latin-ext.woff2
Binary file not shown.
Binary file added src/fonts/dmsans-bold-latin.woff2
Binary file not shown.
Binary file added src/fonts/dmsans-latin-ext.woff2
Binary file not shown.
Binary file added src/fonts/dmsans-latin.woff2
Binary file not shown.

0 comments on commit 3f8b969

Please sign in to comment.