diff --git a/src/symbol/shaping.ts b/src/symbol/shaping.ts index 0fce10b29b0..379f158e2f1 100644 --- a/src/symbol/shaping.ts +++ b/src/symbol/shaping.ts @@ -715,8 +715,9 @@ function shapeLines(shaping: Shaping, x += metrics.advance * section.scale + spacing; } else { shaping.verticalizable = true; - positionedGlyphs.push({glyph: grapheme, imageName, x, y: y + baselineOffset, vertical, scale: section.scale, fontStack: section.fontStack, sectionIndex, metrics, rect}); - x += verticalAdvance * section.scale + spacing; + const advance = verticalAdvance * section.scale + spacing; + positionedGlyphs.push({glyph: grapheme, imageName, x: x + advance, y: y + baselineOffset, vertical, scale: section.scale, fontStack: section.fontStack, sectionIndex, metrics, rect}); + x += advance; } i++;