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 --- src/abi.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/abi.zig b/src/abi.zig index cf7b838..0cce939 100644 --- a/src/abi.zig +++ b/src/abi.zig @@ -57,10 +57,11 @@ pub const Color = extern struct { } }; -/// The face a text is set in: the Go family, bundled with the native host. -/// Mono is for data and code, sans for what is said about it. The web host -/// has one face, the page's `monospace`. -pub const Face = enum(u8) { mono, mono_bold, mono_italic, sans, sans_medium, sans_bold }; +/// The face a text is set in: the Go family, and JetBrains Mono (`code`) +/// for programs, all bundled with the native host. Mono is for data, sans +/// for what is said about it. The web host has one face, the page's +/// `monospace`. +pub const Face = enum(u8) { mono, mono_bold, mono_italic, sans, sans_medium, sans_bold, code, code_bold, code_italic }; /// How 2D drawing combines with what is already there (`Command.blend`). /// Both are fixed-function on both hosts and match: `alpha` is source -- cgit v1.3