Index: Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
diff --git a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
index f8189602b3c50ac22c7f7e76a9e858409f0d9ec9..55dc71f7ab71e0af722c755874900b889f7cfeea 100644 |
--- a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
+++ b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp |
@@ -102,7 +102,9 @@ void SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer(RenderSVGInlin |
const Font& scaledFont = text->scaledFont(); |
m_run = SVGTextMetrics::constructTextRun(text, 0, text->textLength()); |
- m_isComplexText = scaledFont.codePath(m_run) == ComplexPath; |
+ CodePath codePath = scaledFont.codePath(m_run); |
+ m_isComplexText = codePath == ComplexPath; |
+ m_run.setCharacterScanForCodePath(!m_isComplexText); |
if (m_isComplexText) |
m_simpleWidthIterator.clear(); |