handle unicode ZWNJ

This commit is contained in:
Roy Qu 2024-02-26 10:01:08 +08:00
parent fd3a280708
commit 0e6d4483c4
1 changed files with 2 additions and 1 deletions

View File

@ -867,7 +867,8 @@ QList<int> calcGlyphStartCharList(const QString &text)
} }
i+=2; i+=2;
continue; continue;
} else if (ch.unicode() == 0x200D) { } else if (ch.unicode() == 0x200D || ch.unicode() == 0x200C ) {
//ZWJ && ZWNJ
consecutive = true; consecutive = true;
} else if (ch.combiningClass()!=0 && !glyphStartCharList.isEmpty()) { } else if (ch.combiningClass()!=0 && !glyphStartCharList.isEmpty()) {
//a Combining character //a Combining character