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:
roc+@cs.cmu.edu 2007-04-02 20:19:46 -07:00
parent 1ca229ecb9
commit f3d2506617

View File

@ -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());
}