renderer(OpenGL): pass cell_width to glyph renderer

When adding a glyph, we didn't pass the expected width to the glyph
renderer. This can be helpful when scaling emoji, as will happen in the
next commit.
This commit is contained in:
Tim Culverhouse
2025-03-06 09:57:31 -06:00
parent 22ed08cfd8
commit 27c4fd76f3

View File

@ -2105,6 +2105,7 @@ fn addGlyph(
shaper_run.font_index,
shaper_cell.glyph_index,
.{
.cell_width = if (cell.wide == .wide) 2 else 1,
.grid_metrics = self.grid_metrics,
.thicken = self.config.font_thicken,
.thicken_strength = self.config.font_thicken_strength,