cat / 012
clone

a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary

HTML export: pages and views embed JetBrains Mono

Dami committed 95de7f8
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
12 files changed, +20 -27
MNOTICE23++++++++---------------
Mdocs/files/README.md2+-
Minternal/fileio/fonts/OFL.txt4++--
Dinternal/fileio/fonts/ibm-plex-mono-latin-400-italic.woff2bin
Dinternal/fileio/fonts/ibm-plex-mono-latin-400-normal.woff2bin
Dinternal/fileio/fonts/ibm-plex-mono-latin-600-normal.woff2bin
Ainternal/fileio/fonts/jetbrains-mono-latin-400-italic.woff2bin
Ainternal/fileio/fonts/jetbrains-mono-latin-400-normal.woff2bin
Ainternal/fileio/fonts/jetbrains-mono-latin-600-normal.woff2bin
Minternal/fileio/html_test.go2+-
Minternal/fileio/htmlstyle.go14+++++++-------
Mwebsite/static/img/logo.svg2+-
M NOTICE +8 -15
@@ -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:
M docs/files/README.md +1 -1
M internal/fileio/fonts/OFL.txt +2 -2
D internal/fileio/fonts/ibm-plex-mono-latin-400-italic.woff2 +0 -0

Binary file.

D internal/fileio/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0

Binary file.

D internal/fileio/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0

Binary file.

A internal/fileio/fonts/jetbrains-mono-latin-400-italic.woff2 +0 -0

Binary file.

A internal/fileio/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0

Binary file.

A internal/fileio/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0

Binary file.

M internal/fileio/html_test.go +1 -1
M internal/fileio/htmlstyle.go +7 -7
@@ -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)}
M website/static/img/logo.svg +1 -1