mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-21 19:26:09 +03:00
Merge pull request #921 from mitchellh/zwj
font: shaper should not look up U+200D for consistent fonts
This commit is contained in:
@ -213,6 +213,7 @@ pub const RunIterator = struct {
|
||||
if (cell.attrs.grapheme) {
|
||||
var it = self.row.codepointIterator(j);
|
||||
while (it.next()) |cp| {
|
||||
// Do not send presentation modifiers
|
||||
if (cp == 0xFE0E or cp == 0xFE0F) continue;
|
||||
try self.hooks.addCodepoint(cp, @intCast(cluster));
|
||||
}
|
||||
@ -269,7 +270,7 @@ pub const RunIterator = struct {
|
||||
|
||||
while (it.next()) |cp| {
|
||||
// Ignore Emoji ZWJs
|
||||
if (cp == 0xFE0E or cp == 0xFE0F) continue;
|
||||
if (cp == 0xFE0E or cp == 0xFE0F or cp == 0x200D) continue;
|
||||
|
||||
// Find a font that supports this codepoint. If none support this
|
||||
// then the whole grapheme can't be rendered so we return null.
|
||||
@ -288,7 +289,7 @@ pub const RunIterator = struct {
|
||||
it.reset();
|
||||
while (it.next()) |cp| {
|
||||
// Ignore Emoji ZWJs
|
||||
if (cp == 0xFE0E or cp == 0xFE0F) continue;
|
||||
if (cp == 0xFE0E or cp == 0xFE0F or cp == 0x200D) continue;
|
||||
if (!self.group.group.hasCodepoint(idx, cp, presentation)) break;
|
||||
} else {
|
||||
// If the while completed, then we have a candidate that
|
||||
|
Reference in New Issue
Block a user