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
Родитель 2dcedc3ae9
Коммит 58df48eaa8
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

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