Skip to content

Commit 8e9ee3f

Browse files
authored
Update web font to Atkinson Hyperlegible (#938)
Use [Atkinson Hyperlegible Font](https://brailleinstitute.org/freefont) instead of Open Sans so that letters like i and l can be differentiated. Fonts are served using Web Open Font Format 2 (woff2) format. Also set body and paragraph font-size to 1.05em, and set standard font-weight values.
1 parent c5744db commit 8e9ee3f

5 files changed

+39
-3
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

doc/_static/style.css

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@ html {
33
}
44

55
body {
6-
font-family: 'Open Sans', sans-serif;
6+
font-family: "Atkinson Hyperlegible", sans-serif;
7+
font-size: 1.05em;
78
}
89

910
h1, h2, h3, h4 {
10-
font-weight: 300;
11-
font-family: "Open Sans",sans-serif;
11+
font-weight: normal;
12+
font-family: "Atkinson Hyperlegible", sans-serif;
1213
}
1314

1415
h1 {
1516
font-size: 200%;
1617
}
1718

19+
p {
20+
font-size: 1.05em;
21+
}
22+
1823
.gmtplot-output {
1924
width: 100%;
2025
overflow: auto;
@@ -131,3 +136,34 @@ a.copybtn {
131136
user-select: none;
132137
}
133138

139+
/* Atkinson Hyperlegible regular */
140+
@font-face {
141+
font-family: "Atkinson Hyperlegible";
142+
src: url("./fonts/Atkinson-Hyperlegible-Regular-102a.woff2") format('woff2');
143+
font-weight: normal;
144+
font-style: normal;
145+
}
146+
147+
/* Atkinson Hyperlegible bold */
148+
@font-face {
149+
font-family: "Atkinson Hyperlegible";
150+
src: url("./fonts/Atkinson-Hyperlegible-Bold-102a.woff2") format('woff2');
151+
font-weight: bold;
152+
font-style: normal;
153+
}
154+
155+
/* Atkinson Hyperlegible italic */
156+
@font-face {
157+
font-family: "Atkinson Hyperlegible";
158+
src: url("./fonts/Atkinson-Hyperlegible-Italic-102a.woff2") format('woff2');
159+
font-weight: normal;
160+
font-style: italic;
161+
}
162+
163+
/* Atkinson Hyperlegible bold italic */
164+
@font-face {
165+
font-family: "Atkinson Hyperlegible";
166+
src: url("./fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2") format('woff2');
167+
font-weight: bold;
168+
font-style: italic;
169+
}

0 commit comments

Comments
 (0)