Bug 1589778 - Ensure cluster boundaries are set up even in blank textruns. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D175960
This commit is contained in:
Jonathan Kew 2023-04-20 08:38:38 +00:00
parent 5e89f32247
commit a3e321b11d

View File

@ -2420,6 +2420,8 @@ already_AddRefed<gfxTextRun> gfxFontGroup::MakeBlankTextRun(
textRun->AddGlyphRun(font, FontMatchType::Kind::kUnspecified, 0, false,
orientation, false);
textRun->SetupClusterBoundaries(0, aString, aLength);
for (uint32_t i = 0; i < aLength; i++) {
if (aString[i] == '\n') {
textRun->SetIsNewline(i);