diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 14:38:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 13:22:02 -0300 |
| commit | 7dd447b7c8a21187af4fabade2111a0016e4b3a3 (patch) | |
| tree | 309cab6fddb881eef3757a883077c4301b1687c0 /test/text.zig | |
| parent | 534e82b5617f584f7165c52d3025d7d584d90349 (diff) | |
| download | sketchbook-7dd447b7c8a21187af4fabade2111a0016e4b3a3.tar.gz sketchbook-7dd447b7c8a21187af4fabade2111a0016e4b3a3.zip | |
sketchbook: JetBrains Mono NL (no ligatures) for the code faces, and its medium weight (.code_medium)
Diffstat (limited to 'test/text.zig')
| -rw-r--r-- | test/text.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/text.zig b/test/text.zig index 1318d1f..d0e0eea 100644 --- a/test/text.zig +++ b/test/text.zig @@ -16,9 +16,9 @@ const lines = [_]struct { scale: f32, text: []const u8, face: sk.Face = .mono, r // Rasterized at 3 and drawn at 1.5: half of what scale 3 covers (115 px // for ten digits), not what scale 1.5 would shape (120). .{ .scale = 1.5, .text = "0123456789", .raster = 3 }, - // JetBrains Mono, for code, advances as Go Mono does: ten columns - // at scale 2 are the 160 px of the bold line above. - .{ .scale = 2, .text = "rsp \u{2014}\u{25b8} 0x10", .face = .code }, + // JetBrains Mono NL, for code, advances as Go Mono does. + // No ligatures: `->` is two characters, as it is in a source. + .{ .scale = 2, .text = "p->n != 0x10", .face = .code_medium }, }; pub fn draw(f: *sk.Frame) void { |
