mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
bring back built-in emoji font for Linux
This commit is contained in:
@ -297,6 +297,19 @@ pub fn init(
|
|||||||
// Auto-italicize if we have to.
|
// Auto-italicize if we have to.
|
||||||
try group.italicize();
|
try group.italicize();
|
||||||
|
|
||||||
|
// Emoji fallback. We don't include this on Mac since Mac is expected
|
||||||
|
// to always have the Apple Emoji available on the system.
|
||||||
|
if (builtin.os.tag != .macos or font.Discover == void) {
|
||||||
|
try group.addFace(
|
||||||
|
.regular,
|
||||||
|
.{ .loaded = try font.Face.init(font_lib, face_emoji_ttf, font_size) },
|
||||||
|
);
|
||||||
|
try group.addFace(
|
||||||
|
.regular,
|
||||||
|
.{ .loaded = try font.Face.init(font_lib, face_emoji_text_ttf, font_size) },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
break :group group;
|
break :group group;
|
||||||
});
|
});
|
||||||
errdefer font_group.deinit(alloc);
|
errdefer font_group.deinit(alloc);
|
||||||
|
Reference in New Issue
Block a user