Skip to content

Commit

Permalink
feat(typography): use Iosevka as the monospace font
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-kashitsyn committed Jan 18, 2024
1 parent e820920 commit cae47dc
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions css/tufte.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,35 +63,35 @@
}

@font-face {
font-family: "Source Code Pro";
font-family: "Iosevka";
font-style: normal;
font-weight: normal;
src: local(Source Code Pro),
url("/fonts/SourceCodePro-Regular.otf.woff2") format("woff2");
src: local(Iosevka),
url("/fonts/Iosevka-Regular.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: "Source Code Pro";
font-family: "Iosevka";
font-style: italic;
font-weight: normal;
src: local(Source Code Pro),
url("/fonts/SourceCodePro-It.otf.woff2") format("woff2");
src: local(Iosevka),
url("/fonts/Iosevka-Italic.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: "Source Code Pro";
font-family: "Iosevka";
font-style: normal;
font-weight: bold;
src: local(Source Code Pro),
url("/fonts/SourceCodePro-Bold.otf.woff2") format("woff2");
src: local(Iosevka),
url("/fonts/Iosevka-Bold.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: "Source Code Pro";
font-family: "Iosevka";
font-style: italic;
font-weight: bold;
src: local(Source Code Pro),
url("/fonts/SourceCodePro-BoldIt.otf.woff2") format("woff2");
src: local(Iosevka),
url("/fonts/Iosevka-BoldItalic.woff2") format("woff2");
font-display: swap;
}

Expand Down Expand Up @@ -724,16 +724,16 @@ tr.border-bot {

code,
pre>code {
font-family: 'Source Code Pro', monospace;
font-size: 1.2rem;
font-family: 'Iosevka', monospace;
font-size: 0.83em;
line-height: 1.42;
font-variant-numeric: normal;
-webkit-text-size-adjust: 100%;
/* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */
}

.sans>code {
font-size: 1.2rem;
font-size: 0.83em;
}

.marginnote>code,
Expand Down
Binary file added fonts/Iosevka-Bold.woff2
Binary file not shown.
Binary file added fonts/Iosevka-BoldItalic.woff2
Binary file not shown.
Binary file added fonts/Iosevka-Italic.woff2
Binary file not shown.
Binary file added fonts/Iosevka-Regular.woff2
Binary file not shown.
Binary file removed fonts/SourceCodePro-Bold.otf.woff2
Binary file not shown.
Binary file removed fonts/SourceCodePro-BoldIt.otf.woff2
Binary file not shown.
Binary file removed fonts/SourceCodePro-It.otf.woff2
Binary file not shown.
Binary file removed fonts/SourceCodePro-Regular.otf.woff2
Binary file not shown.

0 comments on commit cae47dc

Please sign in to comment.