зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
bc78c3795e
Коммит
473825ab3c
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче