Bug 1405765 - Only fallback on missing characters with size. r=jrmuizel

MozReview-Commit-ID: Aiae1HOXqi2

--HG--
extra : rebase_source : bc88a3555acfb2c37907cc0ee445e7a79b610f40
This commit is contained in:
Alexis Beingessner 2017-10-04 13:55:28 -04:00
Родитель bc78c3795e
Коммит 473825ab3c
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1923,14 +1923,16 @@ gfxFont::DrawGlyphs(const gfxShapedText *aShapedText,
double advance = details->mAdvance;
if (glyphData->IsMissing()) {
if (auto* textDrawer = aRunParams.context->GetTextDrawer()) {
textDrawer->FoundUnsupportedFeature();
return false;
}
// Default-ignorable chars will have zero advance width;
// we don't have to draw the hexbox for them.
if (aRunParams.drawMode != DrawMode::GLYPH_PATH &&
advance > 0) {
if (auto* textDrawer = aRunParams.context->GetTextDrawer()) {
textDrawer->FoundUnsupportedFeature();
return false;
}
double glyphX = aPt->x;
double glyphY = aPt->y;
if (aRunParams.isRTL) {