mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
renderer, shaper: don't use null cells, handle bg and decorations separately
Significant rework that also removes a lot of unnecessarily duplicated work while rebuilding cells in both renderers. Fixes multiple issues with decorations and bg colors on wide chars and ligatures, while reducing the amount of special case handling required.
This commit is contained in:
@@ -44,10 +44,7 @@ pub const Cell = struct {
|
||||
/// this cell is available in the text run. This glyph index is only
|
||||
/// valid for a given GroupCache and FontIndex that was used to create
|
||||
/// the runs.
|
||||
///
|
||||
/// If this is null then this is an empty cell. If there are styles
|
||||
/// then those should be applied but there is no glyph to render.
|
||||
glyph_index: ?u32,
|
||||
glyph_index: u32,
|
||||
};
|
||||
|
||||
/// Options for shapers.
|
||||
|
||||
Reference in New Issue
Block a user