diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 14:18:36 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 534e82b5617f584f7165c52d3025d7d584d90349 (patch) | |
| tree | 5f5ffeb0ae145d5c1cf1845efbadccf145c36f2e /README.md | |
| parent | 45f705a5e590c3dfddc0a544e66beb9bf6205a4d (diff) | |
| download | sketchbook-534e82b5617f584f7165c52d3025d7d584d90349.tar.gz sketchbook-534e82b5617f584f7165c52d3025d7d584d90349.zip | |
sketchbook: JetBrains Mono bundled as three more faces (.code, .code_bold, .code_italic), for programs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -113,10 +113,13 @@ character. `f.textIn(face, x, y, scale, bytes, color)` is the same line in another face of the Go family, all six bundled in the binary (`sk.Face`): `.mono`, `.mono_bold`, `.mono_italic` for data and code, `.sans`, `.sans_medium`, -`.sans_bold` for what is said about it; `f.host.textSizeIn(face, scale, -bytes)` measures it. The three mono faces advance alike (0.6 em: whole -pixels at 25, 30, 35, 45 and 60 px and at their doubles), so columns of -text need no measuring. The web host draws every face as its one. +`.sans_bold` for what is said about it; and `.code`, `.code_bold`, +`.code_italic` are JetBrains Mono, bundled too, for programs. +`f.host.textSizeIn(face, scale, bytes)` measures a line. The six +monospaced faces advance alike (0.6 em: whole pixels at 20, 25, 30, 35, 45 +and 60 px and at their doubles), so columns of text need no measuring; +JetBrains Mono's line box is taller (ascent 1.02 em, where Go's is 0.945). +The web host draws every face as its one. Text is shaped for the size it is drawn at, so under a camera that zooms its letters would shift against each other from frame to frame. |
