mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-14 13:56:08 +00:00
font: add stylistic variants for built-in font, fix naming convention
Fixes #2364 This adds the bold, italic, and bold italic variants of JB Mono so it is built-in. This also fixes up the naming convention for the embedded font files across tests and removes redundant embedded font files.
This commit is contained in:
@@ -9,6 +9,7 @@ const Allocator = std.mem.Allocator;
|
||||
const builtin = @import("builtin");
|
||||
const cimgui = @import("cimgui");
|
||||
const Surface = @import("../Surface.zig");
|
||||
const font = @import("../font/main.zig");
|
||||
const input = @import("../input.zig");
|
||||
const terminal = @import("../terminal/main.zig");
|
||||
const inspector = @import("main.zig");
|
||||
@@ -130,8 +131,8 @@ pub fn setup() void {
|
||||
font_config.FontDataOwnedByAtlas = false;
|
||||
_ = cimgui.c.ImFontAtlas_AddFontFromMemoryTTF(
|
||||
io.Fonts,
|
||||
@constCast(@ptrCast(Surface.face_ttf)),
|
||||
Surface.face_ttf.len,
|
||||
@constCast(@ptrCast(font.embedded.regular)),
|
||||
font.embedded.regular.len,
|
||||
font_size,
|
||||
font_config,
|
||||
null,
|
||||
|
Reference in New Issue
Block a user