Index: Source/platform/fonts/mac/ComplexTextControllerCoreText.mm |
diff --git a/Source/platform/fonts/mac/ComplexTextControllerCoreText.mm b/Source/platform/fonts/mac/ComplexTextControllerCoreText.mm |
index 822aa8cb8f0ff31ffad834a8b9a7d7860584969d..98b9d34e2b08d7d7683036a1f040724b1466115a 100644 |
--- a/Source/platform/fonts/mac/ComplexTextControllerCoreText.mm |
+++ b/Source/platform/fonts/mac/ComplexTextControllerCoreText.mm |
@@ -275,7 +275,7 @@ void ComplexTextController::collectComplexTextRunsForCharacters(const UChar* cp, |
m_complexTextRuns.append(ComplexTextRun::create(m_font.primaryFont(), cp, stringLocation + runRange.location, runRange.length, m_run.ltr())); |
continue; |
} |
- runFontData = FontCache::fontCache()->getFontData(m_font.fontDescription(), fontName.get(), false, DoNotRetain).get(); |
+ runFontData = FontCache::fontCache()->getFontData(m_font.fontDescription(), AtomicString([(NSString *)fontName.get() UTF8String]), false, DoNotRetain).get(); |
// Core Text may have used a font that is not known to NSFontManager. In that case, fall back on |
// using the font as returned, even though it may not have the best NSFontRenderingMode. |
if (!runFontData) { |