Skip to content

Commit

Permalink
add local font
Browse files Browse the repository at this point in the history
Subilan committed Feb 18, 2024
1 parent 6c28a46 commit 0d0bd97
Showing 6 changed files with 33 additions and 2 deletions.
Binary file added public/fonts/rubik-v28-latin-600.woff2
Binary file not shown.
Binary file added public/fonts/rubik-v28-latin-600italic.woff2
Binary file not shown.
Binary file added public/fonts/rubik-v28-latin-italic.woff2
Binary file not shown.
Binary file added public/fonts/rubik-v28-latin-regular.woff2
Binary file not shown.
32 changes: 32 additions & 0 deletions public/fonts/rubik.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* rubik-regular - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Rubik';
font-style: normal;
font-weight: 400;
src: url('./rubik-v28-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Rubik';
font-style: italic;
font-weight: 400;
src: url('./rubik-v28-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-600 - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Rubik';
font-style: normal;
font-weight: 600;
src: url('./rubik-v28-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-600italic - latin */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Rubik';
font-style: italic;
font-weight: 600;
src: url('./rubik-v28-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
3 changes: 1 addition & 2 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -7,9 +7,8 @@
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="icon" href="<%= BASE_URL %>img/icons/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="<%= BASE_URL %>img/icons/apple-touch-icon.png" />
<link rel="preconnect" href="https://google-fonts.mirrors.sjtug.sjtu.edu.cn" />
<link rel="stylesheet" href="./fonts/highway.css"/>
<link href="https://google-fonts.mirrors.sjtug.sjtu.edu.cn/css2?family=Encode+Sans+Semi+Expanded:wght@400;700&family=Rubik:ital,wght@0,400;0,500;0,700;1,400&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./fonts/rubik.css" />
<title>Loading...</title>
</head>
<body>

0 comments on commit 0d0bd97

Please sign in to comment.