Skip to content

Commit

Permalink
Switch body font to Source Serif
Browse files Browse the repository at this point in the history
I've gotten sick of Charter, and found that it had some rendering
issues, such as in <li> elements in Firefox, where the first line of
each <li> would have a greater height than the rest.
  • Loading branch information
phinjensen committed Dec 23, 2023
1 parent 91fe795 commit 4c22ab9
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 3 deletions.
Binary file added static/Source Serif/SourceSerif4-Black.otf.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/Source Serif/SourceSerif4-Bold.otf.woff2
Binary file not shown.
Binary file added static/Source Serif/SourceSerif4-BoldIt.otf.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added static/Source Serif/SourceSerif4-It.otf.woff2
Binary file not shown.
Binary file added static/Source Serif/SourceSerif4-Light.otf.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 31 additions & 0 deletions static/Source Serif/source-serif.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@font-face {
font-family: "Source Serif";
font-style: normal;
font-weight: normal;
font-stretch: normal;
src: url("SourceSerif4-Regular.otf.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif";
font-style: italic;
font-weight: normal;
font-stretch: normal;
src: url("SourceSerif4-It.otf.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif";
font-style: normal;
font-weight: bold;
font-stretch: normal;
src: url("SourceSerif4-Bold.otf.woff2") format("woff2");
}

@font-face {
font-family: "Source Serif";
font-style: italic;
font-weight: bold;
font-stretch: normal;
src: url("SourceSerif4-BoldIt.otf.woff2") format("woff2");
}
5 changes: 2 additions & 3 deletions static/index.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
@import url("Charter/charter.css");
@import url("Plex Mono/plex-mono.css");
@import url("Vollkorn/vollkorn.css");
@import url("Source Serif/source-serif.css");

:root {
--link-color: #036163;
}

body {
background-color: #eff0f1;
font-family: charter;
font-family: "Source Serif", serif;
font-size: 13pt;
line-height: 1.4;
}

a {
display: inline-block;
color: var(--link-color);
text-decoration-style: wavy;
text-decoration-thickness: 1px;
Expand Down

0 comments on commit 4c22ab9

Please sign in to comment.