Skip to content

Commit f4fb57b

Browse files
committed
doc: enable OpenType kerning and ligatures
1 parent c809a4f commit f4fb57b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/doc/rust.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ body {
6262
font-size: 18px;
6363
color: #333;
6464
line-height: 1.428571429;
65+
66+
-webkit-font-feature-settings: "kern", "liga";
67+
-moz-font-feature-settings: "kern", "liga";
68+
font-feature-settings: "kern", "liga";
6569
}
6670
@media (min-width: 768px) {
6771
body {

src/librustdoc/html/static/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ body {
6969
margin: 0;
7070
position: relative;
7171
padding: 10px 15px 20px 15px;
72+
73+
-webkit-font-feature-settings: "kern", "liga";
74+
-moz-font-feature-settings: "kern", "liga";
75+
font-feature-settings: "kern", "liga";
7276
}
7377

7478
h1 {
@@ -101,7 +105,7 @@ h3.impl, h3.method, h4.method {
101105
h3.impl, h3.method {
102106
margin-top: 15px;
103107
}
104-
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a, .collapse-toggle {
108+
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
105109
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
106110
}
107111

0 commit comments

Comments
 (0)