mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 01:51:43 +00:00
font: use variable JetBrains Mono for embedded font
This cuts down our file size significantly.
This commit is contained in:
@@ -6,14 +6,18 @@
|
||||
//! redistribution and include their license as necessary.
|
||||
|
||||
/// Default fonts that we prefer for Ghostty.
|
||||
pub const variable = @embedFile("jetbrains_mono_variable");
|
||||
pub const variable_italic = @embedFile("jetbrains_mono_variable_italic");
|
||||
|
||||
/// Symbols-only nerd font.
|
||||
pub const symbols_nerd_font = @embedFile("nerd_fonts_symbols_only");
|
||||
|
||||
/// Static jetbrains mono faces, currently unused.
|
||||
pub const regular = @embedFile("jetbrains_mono_regular");
|
||||
pub const bold = @embedFile("jetbrains_mono_bold");
|
||||
pub const italic = @embedFile("jetbrains_mono_italic");
|
||||
pub const bold_italic = @embedFile("jetbrains_mono_bold_italic");
|
||||
|
||||
/// Symbols-only nerd font.
|
||||
pub const symbols_nerd_font = @embedFile("nerd_fonts_symbols_only");
|
||||
|
||||
/// Emoji fonts
|
||||
pub const emoji = @embedFile("res/NotoColorEmoji.ttf");
|
||||
pub const emoji_text = @embedFile("res/NotoEmoji-Regular.ttf");
|
||||
@@ -22,7 +26,6 @@ pub const emoji_text = @embedFile("res/NotoEmoji-Regular.ttf");
|
||||
|
||||
/// Fonts with general properties
|
||||
pub const arabic = @embedFile("res/KawkabMono-Regular.ttf");
|
||||
pub const variable = @embedFile("res/Lilex-VF.ttf");
|
||||
|
||||
/// A font for testing which is patched with nerd font symbols.
|
||||
pub const test_nerd_font = @embedFile("res/JetBrainsMonoNerdFont-Regular.ttf");
|
||||
|
||||
Reference in New Issue
Block a user