font/coretext: handle two-byte utf16 followed by more chars

This commit is contained in:
Mitchell Hashimoto
2024-04-04 21:31:07 -07:00
parent 6ace9e9d19
commit eb4d21fcbf
3 changed files with 95 additions and 29 deletions

View File

@@ -12,6 +12,9 @@ pub const fontEmoji = @embedFile("res/NotoColorEmoji.ttf");
pub const fontEmojiText = @embedFile("res/NotoEmoji-Regular.ttf");
pub const fontVariable = @embedFile("res/Lilex-VF.ttf");
/// Font with nerd fonts embedded.
pub const fontNerdFont = @embedFile("res/JetBrainsMonoNerdFont-Regular.ttf");
/// Cozette is a unique font because it embeds some emoji characters
/// but has a text presentation.
pub const fontCozette = @embedFile("res/CozetteVector.ttf");