diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 565d1c3f99..54977348cd 100644 --- a/src/ports/SkFontHost_FreeType.cpp +++ b/src/ports/SkFontHost_FreeType.cpp @@ -902,10 +902,10 @@ using namespace skia_freetype_support; #endif static void copyFT2LCD16(const SkGlyph& glyph, const FT_Bitmap& bitmap) { - SkASSERT(glyph.fWidth * 3 == bitmap.width); + SkASSERT(glyph.fWidth * 3 == bitmap.width - 6); SkASSERT(glyph.fHeight == bitmap.rows); - const uint8_t* src = bitmap.buffer; + const uint8_t* src = bitmap.buffer + 3; uint16_t* dst = reinterpret_cast(glyph.fImage); size_t dstRB = glyph.rowBytes(); int width = glyph.fWidth;