Skip to content

Commit ffaec8c

Browse files
authored
Merge pull request #15 from inertiajs/update-font-settings
Use local Instrument Sans font to enable `font-feature-settings`
2 parents c02c558 + c54a039 commit ffaec8c

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

assets/fonts/InstrumentSans.woff2

86.7 KB
Binary file not shown.

docs.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,18 @@
339339
"source": "/testing",
340340
"destination": "/v2/advanced/testing"
341341
}
342-
]
342+
],
343+
"fonts": {
344+
"body": {
345+
"family": "Instrument Sans",
346+
"source": "/assets/fonts/InstrumentSans.woff2",
347+
"format": "woff2"
348+
},
349+
"heading": {
350+
"family": "Instrument Sans",
351+
"source": "/assets/fonts/InstrumentSans.woff2",
352+
"format": "woff2",
353+
"weight": 500
354+
}
355+
}
343356
}
-379 KB
Binary file not shown.

fonts/inter/InterVariable.woff2

-344 KB
Binary file not shown.

style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..500&display=swap");
21
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300..600&display=swap");
32

4-
body {
5-
font-family: "Instrument Sans";
6-
font-weight: 400;
3+
html {
4+
/* Single story "a", alternate "R", alternate "Q" */
5+
font-feature-settings: "ss02"1, "ss05"1, "ss09"1;
76
}
87

98
h1,
@@ -18,6 +17,7 @@ code,
1817
pre {
1918
font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
2019
Consolas, "Liberation Mono", "Courier New", monospace;
20+
font-feature-settings: normal;
2121
}
2222

2323
b,

0 commit comments

Comments
 (0)