mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 376299. If Windows tells us that the first character of a textrun is in the middle of a cluster, ignore it. r=pavlov
This commit is contained in:
parent
1ca229ecb9
commit
f3d2506617
@ -1137,7 +1137,10 @@ public:
|
||||
if (FAILED(rv))
|
||||
return;
|
||||
gfxTextRun::CompressedGlyph g;
|
||||
for (PRUint32 i = 0; i < mLength; ++i) {
|
||||
// The first character is never inside a cluster. Windows might tell us
|
||||
// that it should be, but we have no before-character to cluster
|
||||
// it with so we just can't cluster it. So skip it here.
|
||||
for (PRUint32 i = 1; i < mLength; ++i) {
|
||||
if (!logAttr[i].fCharStop) {
|
||||
aRun->SetCharacterGlyph(i + aOffsetInRun, g.SetClusterContinuation());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user