Skip to content

Commit 5e9a4ff

Browse files
authored
Switch monospace font to Roboto Mono (#2459)
1 parent 4ca98ed commit 5e9a4ff

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/resources/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ a:hover {
245245
}
246246

247247
pre.prettyprint {
248-
font-family: 'Source Code Pro', Menlo, monospace;
248+
font-family: 'Roboto Mono', Menlo, monospace;
249249
color: black;
250250
border-radius: 0;
251251
font-size: 15px;
@@ -273,7 +273,7 @@ pre {
273273
}
274274

275275
code {
276-
font-family: 'Source Code Pro', Menlo, monospace;
276+
font-family: 'Roboto Mono', Menlo, monospace;
277277
/* overriding bootstrap */
278278
color: inherit;
279279
padding: 0.2em 0.4em;

lib/templates/html/_head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
{{/useBaseHref}}
2222

2323
{{! TODO(jdkoren): unwrap ^useBaseHref sections when the option is removed.}}
24-
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
24+
<link rel="preconnect" href="https://fonts.gstatic.com">
25+
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
2526
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2627
<link rel="stylesheet" href="{{^useBaseHref}}%%__HTMLBASE_dartdoc_internal__%%{{/useBaseHref}}static-assets/github.css">
2728
<link rel="stylesheet" href="{{^useBaseHref}}%%__HTMLBASE_dartdoc_internal__%%{{/useBaseHref}}static-assets/styles.css">

testing/test_package_custom_templates/templates/_head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
{{/useBaseHref}}
2222

2323
{{! TODO(jdkoren): unwrap ^useBaseHref sections when the option is removed.}}
24-
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
24+
<link rel="preconnect" href="https://fonts.gstatic.com">
25+
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
2526
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2627
<link rel="stylesheet" href="{{^useBaseHref}}%%__HTMLBASE_dartdoc_internal__%%{{/useBaseHref}}static-assets/github.css">
2728
<link rel="stylesheet" href="{{^useBaseHref}}%%__HTMLBASE_dartdoc_internal__%%{{/useBaseHref}}static-assets/styles.css">

0 commit comments

Comments
 (0)