From 534e82b5617f584f7165c52d3025d7d584d90349 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 14:18:36 -0300 Subject: sketchbook: JetBrains Mono bundled as three more faces (.code, .code_bold, .code_italic), for programs --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e4718af..01c86cb 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.3