Skip to content

Commit 2602056

Browse files
committed
update fonts: #39
1 parent 23384b1 commit 2602056

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

lib/metanorma/iho/fonts_manifest.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Source Serif Pro:
55
Source Code Pro:
66
- Light
77
Source Han Sans:
8+
FiraCode:

metanorma.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@ i18nyaml: lib/isodoc/iho/i18n-en.yaml
1313
htmlcoverpage: lib/isodoc/iho/html/html_iho_titlepage.html
1414
htmlintropage: lib/isodoc/iho/html/html_iho_intro.html
1515
htmlstylesheet: lib/isodoc/iho/html/htmlstyle.scss
16-
html_bodyfont: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
17-
html_headerfont: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
18-
html_monospacefont: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
16+
html_bodyfont: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
17+
html_headerfont: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
18+
html_monospacefont: '"Fira Code",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
1919
html_normalfontsize: "15px"
2020
html_footnotefontsize: "0.9em"
21+
webfont:
22+
- "https://fonts.googleapis.com/css2?family=Fira+Code&display=swap"
2123
scripts: lib/isodoc/iho/html/scripts.html
2224
scripts_pdf: lib/isodoc/iho/html/scripts.pdf.html
2325
standardstylesheet: lib/isodoc/iho/html/iho.scss
2426
header: lib/isodoc/iho/html/header.html
2527
wordcoverpage: lib/isodoc/iho/html/word_iho_titlepage.html
2628
wordintropage: lib/isodoc/iho/html/word_iho_intro.html
2729
wordstylesheet: lib/isodoc/iho/html/wordstyle.scss
28-
word_bodyfont: '"Helvetica Neue",Arial,sans-serif'
29-
word_headerfont: '"Helvetica Neue",Arial,sans-serif'
30-
word_monospacefont: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
30+
word_bodyfont: 'Arial,sans-serif'
31+
word_headerfont: 'Arial,sans-serif'
32+
word_monospacefont: '"Fira Code",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
3133
word_normalfontsize: "12.0pt"
3234
word_smallerfontsize: "11.0pt"
3335
word_monospacefontsize: "10.0pt"

spec/asciidoctor/base_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
Asciidoctor.convert(input, backend: :iho, header_footer: true)
268268

269269
html = File.read("test.html", encoding: "utf-8")
270-
expect(html).to match(%r[\bpre[^{]+\{[^}]+font-family: SFMono-Regular]m)
270+
expect(html).to match(%r[\bpre[^{]+\{[^}]+font-family: "Fira Code"]m)
271271
expect(html).to match(%r[ div[^{]+\{[^}]+font-family: -apple-system, BlinkMacSystemFont, "Segoe UI"]m)
272272
expect(html).to match(%r[h1, h2, h3, h4, h5, h6 \{[^}]+font-family: -apple-system, BlinkMacSystemFont, "Segoe UI"]m)
273273
end

0 commit comments

Comments
 (0)