-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
21 changed files
with
115 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//! 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 regular = @embedFile("res/JetBrainsMonoNerdFont-Regular.ttf"); | ||
pub const bold = @embedFile("res/JetBrainsMonoNerdFont-Bold.ttf"); | ||
pub const italic = @embedFile("res/JetBrainsMonoNerdFont-Italic.ttf"); | ||
pub const bold_italic = @embedFile("res/JetBrainsMonoNerdFont-BoldItalic.ttf"); | ||
pub const emoji = @embedFile("res/NotoColorEmoji.ttf"); | ||
pub const emoji_text = @embedFile("res/NotoEmoji-Regular.ttf"); | ||
|
||
/// Fonts with general properties | ||
pub const variable = @embedFile("res/Lilex-VF.ttf"); | ||
|
||
/// Font with nerd fonts embedded. | ||
pub const 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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.99 MB
src/font/res/JetBrainsMono-Bold.ttf → src/font/res/JetBrainsMonoNerdFont-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.98 MB
src/font/res/JetBrainsMono-Regular.ttf → ...font/res/JetBrainsMonoNerdFont-Italic.ttf
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.