зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2dcedc3ae9
Коммит
58df48eaa8
|
@ -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());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче