The same font as the docs, their pictures and the site, in place of IBM Plex Mono: regular, semibold and italic, Latin subset, from @fontsource/jetbrains-mono 5.3.0. The binary grows by 16 KB.
- commit
- 95de7f84b855e19db7670386162781de13de3591
- parent
- 39424e0d51b05a4c836e0a6e6fdbc789dddfd37d
- author
- Dami <dami.etoile@gmail.com>
- kind
- deps risk score 1.4 of 3, Jev's estimate
@@ -31,24 +31,17 @@ SOFTWARE.
3131 3232 -------------------------------------------------------------------------------3333 e2e/testdata/fonts/*.ttf34-35-JetBrains Mono 2.304 (regular, bold, italic and bold italic), the font the36-docs' pictures of 012 are drawn in, unchanged from its release37-(https://github.com/JetBrains/JetBrainsMono). Licensed under the SIL Open38-Font License, Version 1.1, whose text is below and in39-e2e/testdata/fonts/OFL.txt.40-41-Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)42-43--------------------------------------------------------------------------------4434 internal/fileio/fonts/*.woff24535 46-IBM Plex Mono (regular, semibold and italic, Latin subset), embedded in the47-web pages 012 writes, as packaged by Fontsource48-(https://fontsource.org/fonts/ibm-plex-mono, @fontsource/ibm-plex-mono). The49-license is also in internal/fileio/fonts/OFL.txt.36+JetBrains Mono, the font of the docs' pictures of 012 and of the web pages37+012 writes: regular, bold, italic and bold italic, unchanged from release38+2.304 (https://github.com/JetBrains/JetBrainsMono), in e2e/testdata/fonts;39+regular, semibold and italic, Latin subset, as packaged by Fontsource40+(https://fontsource.org/fonts/jetbrains-mono, @fontsource/jetbrains-mono41+5.3.0), embedded in the web pages. The license is also in42+e2e/testdata/fonts/OFL.txt and internal/fileio/fonts/OFL.txt.5043 51-Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.44+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)5245 5346 This Font Software is licensed under the SIL Open Font License, Version 1.1.5447 This license is copied below, and is also available with a FAQ at:@@ -71,7 +71,7 @@ own 8,192 by 256. See [Bounds of support](../contributing/limits.md#imports) for
7171 ## Web pages7272 7373 A web page download is one `.html` file that needs nothing else: its74-fonts (IBM Plex Mono), styles, charts and a few lines of script are in74+fonts (JetBrains Mono), styles, charts and a few lines of script are in7575 it, so it opens offline and can be mailed or put on any web server. It7676 draws the sheet as 012 does: column letters and row numbers, each cell's7777 text as the grid shows it at its column's width, with its bold, italic,@@ -1,8 +1,8 @@
1-Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.1+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)22 33 This Font Software is licensed under the SIL Open Font License, Version 1.1.44 This license is copied below, and is also available with a FAQ at:5-http://scripts.sil.org/OFL5+https://scripts.sil.org/OFL66 77 88 -----------------------------------------------------------Binary file.
Binary file.
Binary file.
Binary file.
Binary file.
Binary file.
@@ -63,7 +63,7 @@ func TestHTMLPage(t *testing.T) {
6363 }6464 page := string(data)6565 for _, want := range []string{66- "<title>Sales</title>", "@font-face{font-family:'IBM Plex Mono'", "data:font/woff2;base64,",66+ "<title>Sales</title>", "@font-face{font-family:'JetBrains Mono'", "data:font/woff2;base64,",6767 `<th data-c="A">A</th>`, `data-a="B1" class="b">Sales<`, `data-a="A2" class="clip">Jan<`, `data-a="B2" class="r">$1,200<`,6868 `data-f="=SUM(B2:B3)">$2,100<`, `class="clip note" title="adds up"`, `colspan="2" rowspan="1"`, "<b>not markup</b>",6969 `<figure class="chart"`, "<svg", "<figcaption>Sales by month</figcaption>", `class="range">A1:B3<`,@@ -16,7 +16,7 @@ import (
1616 // reference palettes the golden screens use (e2e/palette_test.go),1717 // mapped to the roles the terminal theme gives them1818 // (internal/ui/theme), dark or light as the reader's system prefers,19-// in IBM Plex Mono, the docs site's font, embedded so the page needs19+// in JetBrains Mono, the docs site's font, embedded so the page needs2020 // nothing else. One cell is htmlCellW by htmlCellH pixels, the size of2121 // a cell of an SVG chart, so charts sit on the grid as on the screen.2222 @@ -103,12 +103,12 @@ func luminance(c uint32) float64 {
103103 var htmlCSS = sync.OnceValue(func() string {104104 var b strings.Builder105105 for _, f := range []struct{ file, weight, style string }{106- {"ibm-plex-mono-latin-400-normal.woff2", "400", "normal"},107- {"ibm-plex-mono-latin-600-normal.woff2", "600", "normal"},108- {"ibm-plex-mono-latin-400-italic.woff2", "400", "italic"},106+ {"jetbrains-mono-latin-400-normal.woff2", "400", "normal"},107+ {"jetbrains-mono-latin-600-normal.woff2", "600", "normal"},108+ {"jetbrains-mono-latin-400-italic.woff2", "400", "italic"},109109 } {110110 data, _ := fonts.ReadFile("fonts/" + f.file)111- fmt.Fprintf(&b, "@font-face{font-family:'IBM Plex Mono';font-weight:%s;font-style:%s;src:url(data:font/woff2;base64,%s) format('woff2')}\n",111+ fmt.Fprintf(&b, "@font-face{font-family:'JetBrains Mono';font-weight:%s;font-style:%s;src:url(data:font/woff2;base64,%s) format('woff2')}\n",112112 f.weight, f.style, base64.StdEncoding.EncodeToString(data))113113 }114114 dark, light := htmlPalettes[0].vars(), htmlPalettes[1].vars()@@ -125,7 +125,7 @@ func HTMLStyle() string { return htmlCSS() }
125125 // htmlRules are the page's rules, after its fonts and palettes.126126 const htmlRules = `*{box-sizing:border-box}127127 html,body{margin:0;background:var(--bg);color:var(--fg)}128-body{font:15px/21px 'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-variant-ligatures:none}128+body{font:15px/21px 'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-variant-ligatures:none}129129 .o12{min-width:100%;width:max-content}130130 .panel{position:sticky;left:0;top:0;z-index:3;background:var(--bg);white-space:pre;width:100vw;max-width:100%}131131 .panel>div{height:21px;display:flex;gap:9px;overflow:hidden}@@ -160,7 +160,7 @@ figure.chart{position:absolute;margin:0;border:1px solid var(--axis);background:
160160 figure.chart figcaption{position:absolute;top:-11px;left:9px;background:var(--bg);padding:0 9px;font-weight:600;white-space:pre}161161 figure.chart .range{position:absolute;bottom:-11px;right:9px;background:var(--bg);padding:0 9px;color:var(--muted);white-space:pre}162162 figure.solo{position:relative;display:inline-block;margin:21px 18px}163-svg.chart{display:block;overflow:visible;font:15px 'IBM Plex Mono',ui-monospace,monospace}163+svg.chart{display:block;overflow:visible;font:15px 'JetBrains Mono',ui-monospace,monospace}164164 .ct-ax{fill:var(--axis);color:var(--axis)}.ct-lb{fill:var(--muted);color:var(--muted)}.ct-mu{fill:var(--muted);color:var(--muted)}165165 .cs-box{stroke:currentColor;stroke-width:1}.cs-gl{stroke:var(--grid);stroke-width:1}.cs-gap{stroke:var(--bg);stroke-width:1.5}166166 .ct-s0,.cf-0{fill:var(--s0)}.ct-s1,.cf-1{fill:var(--s1)}.ct-s2,.cf-2{fill:var(--s2)}.ct-s3,.cf-3{fill:var(--s3)}.ct-s4,.cf-4{fill:var(--s4)}.ct-s5,.cf-5{fill:var(--s5)}@@ -1,5 +1,5 @@
11 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32" width="48" height="32">22 <rect width="48" height="32" fill="#8abeb7"/>33 <rect x="0" y="0" width="48" height="6" fill="#666666"/>4- <text x="24" y="26.5" text-anchor="middle" font-family="IBM Plex Mono, Menlo, monospace" font-weight="700" font-size="17" fill="#1d1f21">012</text>4+ <text x="24" y="26.5" text-anchor="middle" font-family="JetBrains Mono, Menlo, monospace" font-weight="700" font-size="17" fill="#1d1f21">012</text>55 </svg>