diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-04-04 19:22:04 +0300 |
|---|---|---|
| committer | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 01:23:06 +0300 |
| commit | 41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch) | |
| tree | 3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/src/font/embedded.zig | |
| parent | 55c138263e190a1e79d4b997bfb9397306c0ec1f (diff) | |
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/src/font/embedded.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/font/embedded.zig | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/font/embedded.zig b/vendor/libghostty-vt/src/font/embedded.zig new file mode 100644 index 00000000..8e0ae33b --- /dev/null +++ b/vendor/libghostty-vt/src/font/embedded.zig @@ -0,0 +1,55 @@ +//! Fonts that can be embedded with Ghostty. Note they are only actually +//! embedded in the binary if they are referenced by the code, so fonts +//! used for tests will not result in the final binary being larger. +//! +//! Be careful to ensure that any fonts you embed are licensed for +//! 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"); + +/// Emoji fonts +pub const emoji = @embedFile("res/NotoColorEmoji.ttf"); +pub const emoji_text = @embedFile("res/NotoEmoji-Regular.ttf"); + +// Fonts below are ONLY used for testing. + +/// Fonts with general properties +pub const arabic = @embedFile("res/KawkabMono-Regular.ttf"); + +/// A font for testing which is patched with nerd font symbols. +pub const test_nerd_font = @embedFile("res/JetBrainsMonoNerdFont-Regular.ttf"); + +/// Specific font families below: +pub const code_new_roman = @embedFile("res/CodeNewRoman-Regular.otf"); +pub const inconsolata = @embedFile("res/Inconsolata-Regular.ttf"); +pub const geist_mono = @embedFile("res/GeistMono-Regular.ttf"); +pub const jetbrains_mono = @embedFile("res/JetBrainsMonoNoNF-Regular.ttf"); +pub const julia_mono = @embedFile("res/JuliaMono-Regular.ttf"); + +/// Cozette is a unique font because it embeds some emoji characters +/// but has a text presentation. +pub const cozette = @embedFile("res/CozetteVector.ttf"); + +/// Monaspace has weird ligature behaviors we want to test in our shapers +/// so we embed it here. +pub const monaspace_neon = @embedFile("res/MonaspaceNeon-Regular.otf"); + +/// Terminus TTF is a scalable font with bitmap glyphs at various sizes. +pub const terminus_ttf = @embedFile("res/TerminusTTF-Regular.ttf"); + +/// Spleen is a monospaced bitmap font available in multiple formats. +/// Used for testing bitmap font support across different file formats. +pub const spleen_bdf = @embedFile("res/spleen-8x16.bdf"); +pub const spleen_pcf = @embedFile("res/spleen-8x16.pcf"); +pub const spleen_otb = @embedFile("res/spleen-8x16.otb"); |
