Skip to content

Commit 8db7db3

Browse files
committed
fix: @font-face setup to use same family for different styles
1 parent 905b3d8 commit 8db7db3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

components/MarketingServerMono.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function MarketingServerMono(props) {
9595
</div>
9696
<div className={styles.right}>
9797
<Title style={{}}>Regular Slanted</Title>
98-
<P style={{ marginTop: `1rem`, fontFamily: 'ServerMono-Regular-Italic' }}>
98+
<P style={{ marginTop: `1rem`, fontStyle: 'oblique' }}>
9999
Mi sina alta mappa ëa, lómëa coivië, lómëa lúmë, á tyelë, á auta mi i sáma lómë, liëa olassëar ar ilyë lúmët elenaië.
100100
<br />
101101
<br />

global.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
@font-face {
2-
font-family: 'ServerMono-Regular';
2+
font-family: 'ServerMono';
33
src: url('/fonts/ServerMono-Regular.woff2') format('woff2'), /* Best compression, modern browsers */
44
url('/fonts/ServerMono-Regular.woff') format('woff'), /* Good compression, wider support */
55
url('/fonts/ServerMono-Regular.otf') format('opentype'); /* Largest files, universal support */
6+
font-weight: normal;
7+
font-style: normal;
68
}
79

810
@font-face {
9-
font-family: 'ServerMono-Regular-Italic';
11+
font-family: 'ServerMono';
1012
src: url('/fonts/ServerMono-RegularSlanted.woff2') format('woff2'),
1113
url('/fonts/ServerMono-RegularSlanted.woff') format('woff'),
1214
url('/fonts/ServerMono-RegularSlanted.otf') format('opentype');
15+
font-weight: normal;
16+
font-style: oblique;
1317
}
1418

1519
html,
@@ -439,7 +443,7 @@ body {
439443
--type-scale-fixed-label: 10px;
440444

441445
--font-family: -apple-system, BlinkMacSystemFont, helvetica neue, helvetica, sans-serif;
442-
--font-family-mono: 'ServerMono-Regular', Consolas, monaco, monospace;
446+
--font-family-mono: 'ServerMono', Consolas, monaco, monospace;
443447
--font-family-serif: Georgia, Times New Roman, serif;
444448

445449
--theme-border: var(--color-gray-20);

0 commit comments

Comments
 (0)