mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
font: Shaper should replace 0 with 0x20 (space)
This didn't cause any real problems but it was a waste to trigger the full font fallback system for codepoint 0.
This commit is contained in:
@ -182,7 +182,7 @@ pub const RunIterator = struct {
|
||||
// for unknown glyphs.
|
||||
const font_idx_opt = (try self.group.indexForCodepoint(
|
||||
alloc,
|
||||
if (cell.empty()) ' ' else cell.char,
|
||||
if (cell.empty() or cell.char == 0) ' ' else cell.char,
|
||||
style,
|
||||
presentation,
|
||||
)) orelse (try self.group.indexForCodepoint(
|
||||
|
Reference in New Issue
Block a user