mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-20 03:51:26 +00:00
font: use variable JetBrains Mono for embedded font
This cuts down our file size significantly.
This commit is contained in:
@@ -260,36 +260,42 @@ fn collection(
|
||||
.regular,
|
||||
.{ .fallback_loaded = try .init(
|
||||
self.font_lib,
|
||||
font.embedded.regular,
|
||||
font.embedded.variable,
|
||||
load_options.faceOptions(),
|
||||
) },
|
||||
);
|
||||
_ = try c.add(
|
||||
try (try c.getFace(try c.add(
|
||||
self.alloc,
|
||||
.bold,
|
||||
.{ .fallback_loaded = try .init(
|
||||
self.font_lib,
|
||||
font.embedded.bold,
|
||||
font.embedded.variable,
|
||||
load_options.faceOptions(),
|
||||
) },
|
||||
))).setVariations(
|
||||
&.{.{ .id = .init("wght"), .value = 700 }},
|
||||
load_options.faceOptions(),
|
||||
);
|
||||
_ = try c.add(
|
||||
self.alloc,
|
||||
.italic,
|
||||
.{ .fallback_loaded = try .init(
|
||||
self.font_lib,
|
||||
font.embedded.italic,
|
||||
font.embedded.variable_italic,
|
||||
load_options.faceOptions(),
|
||||
) },
|
||||
);
|
||||
_ = try c.add(
|
||||
try (try c.getFace(try c.add(
|
||||
self.alloc,
|
||||
.bold_italic,
|
||||
.{ .fallback_loaded = try .init(
|
||||
self.font_lib,
|
||||
font.embedded.bold_italic,
|
||||
font.embedded.variable_italic,
|
||||
load_options.faceOptions(),
|
||||
) },
|
||||
))).setVariations(
|
||||
&.{.{ .id = .init("wght"), .value = 700 }},
|
||||
load_options.faceOptions(),
|
||||
);
|
||||
|
||||
// Nerd-font symbols fallback.
|
||||
|
||||
Reference in New Issue
Block a user