mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1522857 - Ensure the CHAR_IS_SPACE flag is set properly in the textrun's mCharacterGlyphs array even when the space glyph does not fit into a simple CompressedGlyph record. r=jrmuizel
This commit is contained in:
parent
28923de147
commit
3a5283ff8f
@ -3061,6 +3061,9 @@ bool gfxFont::SplitAndInitTextRun(
|
||||
flags | gfx::ShapedTextFlags::TEXT_IS_8BIT, rounding, tp);
|
||||
if (sw) {
|
||||
aTextRun->CopyGlyphDataFrom(sw, aRunStart + i);
|
||||
if (boundary == ' ') {
|
||||
aTextRun->GetCharacterGlyphs()[aRunStart + i].SetIsSpace();
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -1536,6 +1536,7 @@ void gfxTextRun::SetSpaceGlyph(gfxFont* aFont, DrawTarget* aDrawTarget,
|
||||
AddGlyphRun(aFont, gfxTextRange::MatchType::kFontGroup, aCharIndex, false,
|
||||
aOrientation);
|
||||
CopyGlyphDataFrom(sw, aCharIndex);
|
||||
GetCharacterGlyphs()[aCharIndex].SetIsSpace();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user