diff options
-rw-r--r-- | src/gpu/text/GrAtlasTextContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp index 6be6b5b8c3..27c8dea670 100644 --- a/src/gpu/text/GrAtlasTextContext.cpp +++ b/src/gpu/text/GrAtlasTextContext.cpp @@ -795,7 +795,9 @@ void GrAtlasTextContext::drawDFPosText(GrAtlasTextBlob* blob, int runIndex, glyphPos.fY += (2 == scalarsPerPosition ? pos[1] : 0) - SkFloatToScalar(glyph.fAdvanceY) * alignMul * textRatio; - if (glyph.fMaskFormat != SkMask::kARGB32_Format) { + if (glyph.fMaskFormat == SkMask::kA8_Format || + glyph.fMaskFormat == SkMask::kBW_Format) + { DfAppendGlyph(blob, runIndex, glyphCache, &currStrike, glyph, glyphPos.fX, glyphPos.fY, paint.filteredPremulColor(), cache.get(), textRatio); } else { |